The VNC ports you will forward for VNC can be configured on the server or exposed publicly, depending on your router configuration.
- If you are using VNC for TeamViewer, you will forward TCP 5800 and TCP 5900.
- For multiple displays, ports above 5901 are the best to use. Note that in this case, each display will use the next consecutive number.
- Port forwarding 5800 is suitable as a basic webserver to allow easy remote access using a web-based VNC JavaScript application.