Closed jeroen closed 4 years ago
I remember I tried this a while ago and it worked (or I don't remember correctly?). I just tried again with a remote server listening 0.0.0.0
and it does not work but listening its real intranet IP works (I connect to the intranet from outside via sshuttle).
Yes using the host ip address seems to work. But it would be nice if it would work with 0.0.0.0
as well.
You probably need to change the html/js client to use the same server address for polling as in window.location
because the real intranet IP is often different when the server is behind a proxy.
Yes, definitely.
Thank you for opening the issue.
I just pushed changes that should solve this (0d931080391e8d2d6153e35e9e7c73ffd02ddc36).
The html/js client will now access the address to which the GET /live
request was sent.
Hmm it's not working for me. The server is just giving me 401's with "Unauthorized." and the client seems to be assuming json
Last commit broke the security tokens. Should work now aaf803f67bf4b47fee1b203daf4b5cc5e97fe201
It works for me now. Thanks!
I would like to SSH into my remote machine, and see plots locally in my browser. However if I bind to the default
127.0.0.1
then we cannot connect from outside.So instead on the remote machine, I start with:
My local browser can connect to the remote http server (if I replace
0.0.0.0
with my hostname) however the html/js client page doesn't work because javascript is trying to connect to0.0.0.0
.I also tried starting the server with
httpgd::httpgd('actual.hostname.com')
but then I couldn't even connect to the http server remotely.