You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This is a real edge case, so I don't know how we want to to approach it, especially given it is down to the GRPC side of things, which will be changing in the future anyway.
By default both the GServer and the bindserver listen to ::, the IPv6 equivalent of 0.0.0.0.
On a linux machine it automatically handles the conversion of 127.0.0.1 -> the local IPv6 address if something is listening, however WSL2's network binding doesn't do this. A couple of small changes can fix this quickly (although not optimally):
Currently I'm just applying these changes locally in a patch to get my WSL2 dev environment working, but posting as an issue on the extremely low chance someone comes across the same issue.
This is a real edge case, so I don't know how we want to to approach it, especially given it is down to the GRPC side of things, which will be changing in the future anyway.
By default both the GServer and the bindserver listen to
::
, the IPv6 equivalent of0.0.0.0
.On a linux machine it automatically handles the conversion of 127.0.0.1 -> the local IPv6 address if something is listening, however WSL2's network binding doesn't do this. A couple of small changes can fix this quickly (although not optimally):
SCope/opt/scopeserver/bindserver/server.js
Line 4 in 32f2233
var wss = new WebSocketServer({ host: "127.0.0.1", port: process.argv[2] });
and
SCope/opt/scopeserver/dataserver/modules/gserver/GServer.py
Line 999 in 32f2233
server.add_insecure_port(f"{config['localHostAddress']}:{config['gPort']}")
Currently I'm just applying these changes locally in a patch to get my WSL2 dev environment working, but posting as an issue on the extremely low chance someone comes across the same issue.
See: microsoft/WSL#4851 (comment)
The text was updated successfully, but these errors were encountered: