ride
ride copied to clipboard
RIDE under Windows can't connect to interpreter in WSL2 using localhost
Describe the issue you are having
RIDE keeps trying to connect to 127.0.0.1:4502 when host is localhost. The interpreter in WSL2 can't be found with that address, this results in connect error. Although a browser under Windows can connect to localhost:4502 when WSL2 interpreter starts in headless/ZeroFootprint.
Did you connect to an already running interpreter or start the interpreter from RIDE?
Connect to already running interpreter
How do you reproduce the issue?
Connect fail in RIDE:
In WSL2, start interpreter RIDE_INIT="SERVE:*:4502" dyalog
.
In Windows RIDE, type: connect TCP, host: localhost, port:4502.
Click 'connect'.
Connect success in browser:
In WSL2, start interpreter RIDE_INIT="HTTP:*:4502" dyalog
.
In a Windows browser, type localhost:4502
in addressbar and hit enter.
Paste the contents of Help → About (Shift+F1)
IDE:
Version: 4.3.3463
Platform: Win32
Date: 2020-07-07 10:44:21 +0100
Git commit: 0cd6e9faf39a5d6a5f5caa94d1ff51743d5cdd75
Preferences:{
"ime":"0",
"kbdLocale":"en_GB",
"keys":"{\"JBK\":[\"Alt-Left\",\"Ctrl-Shift-J\"]}",
"wse":"1"
}
Interpreter:
Version: unknown
Platform: unknown
Edition: unknown
Date: unknown
For future newbies, IMHO:
In WSL2, start interpreter RIDE_INIT="SERVE:*:4502" dyalog.
should be:
RIDE_INIT="SERVE::4502" dyalog
Note: leave out the asterisk
HTH Marv
Source: RIDE User Guide