roerohan / react-vnc

A React Component to connect to a websockified VNC client using noVNC.
https://roerohan.github.io/react-vnc/
MIT License
88 stars 21 forks source link

Is there any possibility to pass password for VNC Server? #15

Closed monokbaev closed 2 years ago

monokbaev commented 2 years ago

How to add password, if VNC server requires it?

roerohan commented 2 years ago

@monokbaev , sorry for the late response.

https://github.com/roerohan/react-vnc/blob/01afe07b5801087fbf11fec366896c980986ac54/src/lib/VncScreen.tsx#L95-L98

I haven't tried it with a password yet, but this part should ensure that you get a prompt on your browser in case the VNC server requires a password.