Skip to main content

Change the ports of WinVNC Server

Posted August 2002 by Steve Sinchak

Although Windows XP have remote desktop function, most people still like to use VNC to remote control their machine, however you may need to change the port to bypass the firewall of your office/school. Here's the way to change the port settings.

  • If you want to set port > 5900:
  1. Run WinVNC (App Mode)
  2. Right click and select "Properties" on the VNC tray icon
  3. Check "Accept Socket Connections" but DO NOT check "Auto"
  4. Calculate display number: if you want to set to port 6900, then your display number will be: 6900 - 5900 = 1000
  5. Enter 1000 in the display number field
  6. Done
  • If you want to set port < 5900 (e.g. port 2000), this reqire a few more steps:
  1. Run WinVNC (App Mode)
  2. Right click and select "Properties" on the VNC tray icon
  3. Tick "Accept Socket Connections" but DO NOT click "Auto", enter "0" to the "Display Number" field.
  4. Exit VNC server
  5. Start -> Run -> regedit -> OK, Find "\HKEY_CURRENT_USER\Software\ORL\WinVNC3"
  6. Find value of "PortNumber"
  7. edit the value, change the DEC value of 5900 to the port number you want
  8. restart VNC Server, Done!

When you connect to your machine by VNCViewer, type "your-ip:PortNumber" to connect (e.g. "192.168.10.51:2000")

And the web port is the value of PortNumber - 100, so if PortNumber = 5900, http port = 5800, then you can access your desktop in a browser by "http://your-ip:PortNumber", (e.g. "http://192.168.10.51:1900")

Hope this can help

Related Posts


If you own a Google Chromecast streaming device, you can easily share a browser tab in Chrome browser or even your entire desktop.  This can be very useful when presenting from your laptop or if you just want to watch something on a big screen that is only on your PC.  The only requirement is you must be on the same network as your Chromecast...

Read More

If you are a fan of minimalist desktop experiences, hiding the desktop icons are an easy way to clean up the Windows interface.  Instead of saving everything to your desktop, use the default profile folders such as downloads and documents.  Actually hiding all the icons on your desktop is a very simple customization hidden in the right-click context menu.  Just right-click on the desktop, select View...

Read More

Google security researchers have published details about a major security flaw found in the SSL protocol that is used to encrypt data transferred between your browser and a web server. SSL is typically used in situations where logon credentials are validated...

Read More

Enabling two-factor authentication is a great way to add an additional level of protection to your Microsoft account.  Even if your password is stolen, your account is still protected because two-factor authetication requires an additional level of verification to log in. Microsoft calls their version of two-factor authentication "two-step verification" and it works by providing you with a random code...

Read More