16
2
According to Wikipedia:
VNC by default uses TCP port 5900+N,[5][6] where N is the display number (usually :0 for a physical display). Several implementations also start a basic HTTP server on port 5800+N to provide a VNC viewer as a Java applet, allowing easy connection through any Java-enabled web browser. Different port assignments can be used as long as both client and server are configured accordingly.
My book says when you start vncserver for the first time (versus starting multiple instances) you use vncviewer host-ip:1
It refers to connecting to display number 1 and port 5901.
What happens if you connect to 5900 (Physical display), does this cause problems? When they say physical display, do they main your monitor? If so what happens if you connect to it? I realize you can change these ports anyway, but in the context of Wikipedia with default configuration, let's say you connect to vncviewer host-ip:0?
So if I connect to display :0 I'll se what's being displayed on my monitor versus :1 and up being a completely different x session? – rubixibuc – 2012-02-19T04:38:32.653
if you set the vnc server to connect to display :0 on port 5900, then yes. You can however set the port to be anything at all, or connect to any arbitrary display on an arbitrary port – Journeyman Geek – 2012-02-19T05:38:40.727