Ask coding questions

← Back to all posts
Do VNC clients work with Replit?
h
PaoloAmoroso (192)

I'm trying to connect to my Python REPLs via VNC as explained in the documentation. But when I open a connection with the Remmina client on Linux (Crostini on Chrome OS) I get the error VNC server closed connection. I'm reasonably sure the REPLs are properly configured and the credentials are correct.

Is connecting to REPLs supposed to work with clients other than noVNC? Any suggestions?

One thing I've noticed is Remmina doesn't let me customzie the port and path of the connection's websocket, which Replit seems to require. So I'll try another VNC client.

Answered by luisreplit (5) [earned 5 cycles]
View Answer
Comments
hotnewtop
luisreplit (5)

Hi Paolo!

Replit only supports connecting through noVNC because of a current limitation in our hosting stack: repls can only expose HTTP services.

The reason why noVNC works is that they expect the connection to be made using RFB-over-WebSocket, and I am unaware of any other native VNC clients that allow that combination.

PaoloAmoroso (192)

@luisreplit Makes sense, thanks for the background.

PaoloAmoroso (192)

@RayhanADev @InvisibleOne I'm making some progress.

It turns out all the VNC clients I installed support specifying an alternate port with a syntax such as host.example.com:443 (Remmina) or host.example.com::443 (VNC Connect).

When I try to open a connection to a REPL I no longer get an error. But the connection progress indicator goes on indefinitely and nothing happens. This happens also when running the VNC client from Android, which suggests this is not a Crostini issue.

RayhanADev (2616)

Hiya @PaoloAmoroso

Replit has it's VNC setup perfectly for noVNC, but I don't believe it has proper support for other VNC platforms :/. I would assume it should work regardless but perhaps Crostini requires a different setup/connection?

PaoloAmoroso (192)

@RayhanADev Thanks, I'm not sure it's a Crostini issue. I'm assuming if Replit works with noVNC, it likely supports the standard VNC protocol and hence should work with any client with the right features.

I tried another good client, VNC Connect, but it returns the error The connection closed unexpectedly without even letting me enter my credentials. Despite providing many options and preferences, VNC Connect doesn't let me set the port either.

RayhanADev (2616)

@PaoloAmoroso hmmm, gotcha
Well I suppose you should report it as a bug, just click the 'Get help' button and then 'Report a bug' :)

PaoloAmoroso (192)

@RayhanADev That's what I was meaning to do. But first I wanted to make sure Replit is supposed to work with VNC clients, I connect with the proper parameters, and I'm not the only one experiencing the issue.

RayhanADev (2616)

@PaoloAmoroso ah sweet. Well then I hope your problem gets resolved soon then :)

InvisibleOne (3224)

It should work as long as it is on port 443 I'm not sure if it only supports noVNC or what though.