Web server listens only on 127.0.0.1 #102
Labels
No labels
actions
bug
complicated
database
dependencies
documentation
downstream
duplicate
enhancement
feature
fixed already
front-end
idea
internal
invalid
investigating
javascript
low priority
milestone
minor bug
needs info
networking
nice to have
pcntl
php
question
suggestion
sync
threading
ui
ux
web
webmail
wontfix
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
bcarrella/libremail#102
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Describe the bug
Liberemail webserver listens only at 127.0.0.1
To Reproduce
Steps to reproduce the behavior:
Expected behavior
Web UI should be opened.
Server:
Desktop:
Possible solution
I think solution can be made by describing server configuration parameters like "hostname" / "address" in this part of manual:
https://github.com/mikegioia/libremail/blob/master/sync/doc/configuration.md#server
Great catch @netandreus
@netandreus I pushed a potential fix for this to the branch issue102, the PR is here: #103. If you have the chance, would you mind pulling down that branch and updating the two config files in
/sync/config/local.iniand/sync/client/config.json? They need to match.@mikegioia Just checked #103 Now server responds to browser from another machine but websocket still try to connect to localhost.
I think problem is here:
mikegioia/libremail@ff8db935a4/sync/client/dist/libremail.js (L59)localhost and port are hardcoded.
@netandreus If you switch to the branch
issue102and re-compile the client I think it should work for you. I apologize, I should have specified it clearer. I would make sure the following are done:issue102sync/config/local.iniwith your server/port/host settingssync/client/config.jsonwith your port/host settingssync/clientrunnpm installand thegruntcommand to re-compile the front-end assetsLet me know if you run into any problems. The config.json file has the host/port for the web socket connecting and needs to match what's in the sync/config/local.ini file.
@mikegioia I did everything you wrote. Now there is no errors in web browser console, web UI opened but there is no elements on it, only "Waiting for signal message".
Do you mind posting examples of what values you're using in the config files?
No problem, here they are.
local.ini
config.json
@netandreus I was able to get this running using the same configuration for server, port, and address. I was wondering, are you running
./libremailor./serverto test it out? You'll need to run./libremailto see the sync client working.@mikegioia thank for support! Client is now working. This is a coorect startup procedure (for issue102):
@netandreus You shouldn't need to do step 4 in your list there. That's running two copies of the sync process. ./libremail runs both server and sync (fyi).