Remotely hosted rerun web-viewer still tries to connect to incorrect (local) websocket #1542
Labels
🪳 bug
Something isn't working
good first issue
Good for newcomers
🕸️ web
regarding running the viewer in a browser
Describe the bug
I have two computers on my home network:
server: 192.168.86.32
laptop: 192.168.68.100
I want to run the web-viewer on the server:
But then connect to it from my laptop.
Unfortunately when I do this, the browser just shows:
Clearly this won't work since the websocket connection actually needs to be made to: ws://192.168.86.32:9877
Expected behavior
The web-viewer should connect to the correct websocket and receive the data.
Known work-arounds
The websocket address can be overridden via a url-parameter.
If I instead run:
Then the client connects to the correct websocket and everything works.
The user needing to craft a complex url like this, however, is sub-optimal.
Proposed solution:
window.location.hostname
.The text was updated successfully, but these errors were encountered: