-
Notifications
You must be signed in to change notification settings - Fork 1.5k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Socket IO not reachable from outside docker #5045
Comments
Can someone help to explain what is the use for this socket io? My web view is working fine without this config. |
GET http://192.168.4.15:8000/inventory-**********.json keep send request to 127.0.0.1 for socker.io maybe this is why mapping port 4000 won't work. |
I already changed the IP in the main.js to the one from the server it changed nothing. |
i change two ip and then i finally success. step 1 / change websocket url from config step 2 / change main.js that's it. you have to change config, make socket not only listen on 127.0.0.1(localhost) |
Closing as it's a config issue |
Expected Behavior
The web view can connect to the socket.io server provided by the bot. No matter if you are running it in docker container or not.
Actual Behavior
When run in docker container the web view can't connect to the socket.io server from the bot. I already added a ports-section (mapped port 4000 to 4000 of host) to the bot container. From within the bot container port 4000 is reachable. From outside the container it says "connection refused".
Your FULL config.json (remove your username, password, gmapkey and any other private info)
{
...
"websocket": {
"start_embedded_server": true,
"server_url": "127.0.0.1:4000"
}
...
}
Steps to Reproduce
docker-compose up from the current master
Other Information
OS:
ubuntu 14.04
Branch:
master
Git Commit:
42d670a
Python Version:
Python 2.7.12
The text was updated successfully, but these errors were encountered: