What username and password do I enter when I'm trying to connect to VNC Server?

Follow

When you use VNC Viewer to connect to a remote computer for the first time, you are prompted to enter a username and password. This authenticates you to VNC Server, the program running on the remote computer.

Note: You can choose to remember the password so you don't have to enter it each time you connect.

By default, you must enter the local system (or domain/Active Directory) username and password you usually use to log in to your account on the remote computer.

You can configure VNC Server to use a password specific to VNC Server, known as VNC Password. See this article for more information: Setting up VNC Password

How do I find my username?

The username for your computer does not always match your display name – so knowing what to use when connecting to a remote device isn’t always as straight forward as it seems!

If you are working for an organisation, your IT department should be able to tell you your username. However, all of our supported operating systems include a built-in command that you can run to find your username.

Windows

On the device with VNC Server installed, whilst signed into the account you wish to use when connecting, open ‘Command Prompt’.

You can do this by clicking the Start Menu icon and searching for ‘Command Prompt’. Click on the program to launch it.

windows1.png

This will present you with the Command Prompt window, which usually has a black background with white text. Within this window, type the following command and press Enter:

whoami

This will return a line of text which includes your username. The first half will be your computer name (or your domain name, if applicable) and the second half will be your username.

windows2.png

Your password will be the same one you use to log in to the remote PC.

If you use Windows 10/11 and normally use a PIN to log in to your computer, please use the password for your Microsoft account instead.

Mac

On the device with VNC Server installed, whilst signed into the account you wish to use when connecting, search for and open the ‘Terminal’ app.

You can do this by using the search feature or Launchpad. The icon you are looking for is as follows:

mac1.png

Once terminal has been opened, you will be presented with a window. This window may be black or white depending on whether Dark Mode is enabled on your Mac. In the window, type the following command and press Enter:

whoami

This will return your username. The example below shows that the returned username is simply ‘user’.

mac2.png

Your password will be the same one you use to log in to the remote PC.

Linux

On the device with VNC Server installed, whilst signed into the account you wish to use when connecting, search for and open the ‘Terminal’ application.

Once opened, type the following command and press Enter:

whoami

This will return your username as shown below.

linux1.png

Your password will be the same one you use to log in to the remote PC.

What do I do if I have forgotten my password?

Please see this article: How do I reset my password?

I'm entering the right username and password but I get an Access is Denied message

By default, VNC Server is configured to only allow users who are members of the local administrators group(s) to authenticate.

See "Why do I get an "Access denied" error message when connecting to VNC Server?" for more information. 

Was this article helpful?
59 out of 327 found this helpful

Comments

0 comments

Please sign in to leave a comment.