
There is a way to find the display vnc server session number in your UNIX or Linux operating system in case you forgot which display session you are referring to. Execute this command:
# netstat -a -n | grep -i 590* | more tcp 0 0 0.0.0.0:5901 0.0.0.0:* LISTEN tcp 0 0 0.0.0.0:5902 0.0.0.0:* LISTEN tcp 450 0 10.6.3.143:56659 10.6.3.143:1527 ESTABLISHED tcp 0 0 10.6.3.143:1527 10.6.3.143:56659 ESTABLISHED tcp 0 0 10.6.3.143:5901 10.6.14.9:2315 ESTABLISHED tcp 0 0 10.6.3.143:5901 10.6.14.9:2913 ESTABLISHED tcp 0 0 :::45971 :::* LISTEN
From above command, you can find the display vnc server session number at the <ip-address>:590*. As above example, the display vncserver session number is 1(5901), 2(5902).


