Connecting Server...
Closed this issue · 2 comments
I am trying to connect using http://ServerIP:8080 but continuing to get Connecting Server..
I used following command to setup docker container:
docker run --rm -it -p 0.0.0.0:8080:80 -v clapshot-demo:/mnt/clapshot-data/data \
elonen/clapshot:latest-demo-htadmin
Any help would be appreciated
Based on ServerIP
in your question, I guess you are trying to run the docker image and web browser on separate hosts?
If that's the case, the problem is that client configuration file /etc/clapshot_client.conf
in the demo container is set up to connect 127.0.0.1 by default, so your browser doesn't know where the server actually is.
You can see the connection attempts and associated error messages by opening javascript console in your browser.
To help fix this, I just updated the demo images so that you can now pass an alternative URL base in an environment variable, like this (commit fcf6405):
docker run -e CLAPSHOT_URL_BASE='192.168.1.12:8080/' --rm -it -p 0.0.0.0:8080:80 -v clapshot-demo:/mnt/clapshot-data/data elonen/clapshot:latest-demo-htadmin
This makes the web client to connect websocket at 192.168.1.12
instead of 127.0.0.1
.
Thanks for this. Using a clean system, I replaced 192.168.1.12 with my server IP address and am still getting server connecting..
Javascript console says:
failed to load resource: net::ERR_CONNECTION_REFUSED http://127.0.0.1:8080/api/health
NOW WORKING...
I was logged in from the previous session. Once that expired I had access.