Selecting vnc port automatically