A direct connection is one that you broker yourself, without endpoints having to connect to RealVNC’s cloud service.
You must know the IP address or hostname of the remote computer at the moment you want to connect, and you will likely need to reconfigure intermediate firewalls and routers in advance too.
By default, VNC Connect uses port 5900 TCP/UDP, so you must allow this port inbound to VNC Server and/or outbound from VNC Viewer. See the set up instructions below for a private network such as a LAN or VPN, or a public network such as the Internet.
Establishing a direct connection
To establish a direct connection:
On the remote computer you want to control, make sure direct connectivity is enabled.
On the local computer or mobile device you want to control from, enter the IP address or hostname of the remote computer in the VNC Viewer search bar (you don’t need to sign in):
You may also need to qualify the address with a port number if VNC Server is listening on a port other than the default 5900, for example
192.168.5.236:80for port 5980 or
192.168.5.236::80for port 80.
Authenticate to VNC Server running on the remote computer. The password you enter depends upon which subscription you have. Find out what this is.
Enabling direct connectivity on a remote computer
You must enable direct connectivity on each remote computer you want to control. You can do this when you license VNC Server:
- If you sign in to VNC Server at install-time using your RealVNC account credentials, simply follow the in-app instructions.
- If you apply an offline license (either desk-side or remotely), direct connectivity is automatically enabled.
You can check whether direct connectivity is enabled for a computer by examining the VNC Server dialog and checking for IP addresses:
Setting up a direct connection over a local network (LAN or VPN)
You will need:
A remote computer to control:
A local device to control from:
Both connected to the same local network:
Now do this:
- Download VNC Server to the computer you want to control.
- Use VNC Server to look up the private (internal) IP address of the computer.
Download VNC Viewer to the device you want to control from.
Enter the private IP address in VNC Viewer to establish a direct connection.
- Enter the user name and password you typically use to log on to the VNC Server computer.
Setting up a direct connection over the Internet*
*to maximise security, RealVNC strongly recommends cloud connections be used for connecting from the Internet.
You will need, in addition to the above:
Both devices connected to the Internet:
Make and model of your router:
Now do this:
Configure the VNC Server computer’s firewall to add an exception for VNC.
Configure the VNC Server computer’s router to forward port 5900.
Look up the VNC Server computer’s public (external) IP address.
Enter the public IP address in VNC Viewer to establish a direct connection.
Enter the user name and password you typically use to log on to the VNC Server computer.