Skip to content

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

Answered by roerohan
ChyngyzMonokbaev asked this question in Q&A
Discussion options

You must be logged in to vote

@monokbaev , sorry for the late response.

_rfb.addEventListener('credentialsrequired', () => {
const password = prompt("Password Required:");
_rfb.sendCredentials({ password: password });
});

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.

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by roerohan
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants
Converted from issue

This discussion was converted from issue #15 on February 27, 2022 12:02.