Rstudio Server started in WSL2, pamtester works in Ubuntu, but empty response on Host/Remote

Viewed 14

I am currently hosting a RStudio-server 2022.07.1_554, in WSL2 Windows 11. After bridging WSL2 internet to my host, it used to work remotely. However, after restarting WSL, it does not work anymore.

I can confirm RStudio is running by testing it in Ubuntu.

sudo pamtester --verbose rstudio <username> authenticate

Output:

pamtester: invoking pam_start(rstudio, <username>, ...)
pentester: performing operation - authenticate
Password:
pamtester: successfully authenticate

wget localhost:8787 gives

--2022-09-10 01:16:10--  http://localhost:8787/
Resolving localhost (localhost)... 127.0.0.1
Connecting to localhost (localhost)|127.0.0.1|:8787... connected.
HTTP request sent, awaiting response... 302 Moved Temporarily
Location: http://localhost:8787/unsupported_browser.htm [following]
--2022-09-10 01:16:10--  http://localhost:8787/unsupported_browser.htm
Connecting to localhost (localhost)|127.0.0.1|:8787... connected.
HTTP request sent, awaiting response... 200 OK
Length: 1159 (1.1K) [text/html]
Saving to: ‘index.html’

index.html                    100%[=================================================>]   1.13K  --.-KB/s    in 0s

2022-09-10 01:16:10 (292 MB/s) - ‘index.html’ saved [1159/1159]

However, when I use Chrome in Windows to visit localhost:8787, Result would be ERR_EMPTY_RESPONSE

Any idea on what could I do?

0 Answers
Related