Update: UltraVNC 1.4.3.6 and UltraVNC SC 1.4.3.6: viewtopic.php?t=37885
Important: Please update to latest version before to create a reply, a topic or an issue: viewtopic.php?t=37864

Join us on social networks and share our announcements:
- Website: https://uvnc.com/
- GitHub: https://github.com/ultravnc
- Mastodon: https://mastodon.social/@ultravnc
- Facebook: https://www.facebook.com/ultravnc1
- X/Twitter: https://twitter.com/ultravnc1
- Reddit community: https://www.reddit.com/r/ultravnc
- OpenHub: https://openhub.net/p/ultravnc

2 digit port numbers

Any features you would like to see in UltraVNC? Propose it here
Post Reply
User avatar
supercoe
400
400
Posts: 1732
Joined: 2009-07-20 21:27
Location: Walker, MN
Contact:

2 digit port numbers

Post by supercoe »

It seems the UltraVNC viewer will treat two digit port numbers as 5900+#.
For instance if we use the viewer to connect to a repeater on port 80 it will actually try to connect on port 5980.

Why does this exist?

Could we have an option to turn this off?
http://www.chunkvnc.com - ChunkVNC - Free PC Remote control with the Open Source UltraVNC wrapper InstantSupport!
YY
200
200
Posts: 996
Joined: 2006-11-13 15:11

Re: 2 digit port numbers

Post by YY »

Yes, both UltraVNC server and viewer are interpreting the port number in this way.

This may be has its purpose: to make it able run as the old VNC that using a parameter called Display Number (a 2-digit number). I'm not sure the exact meaning this parameter, but its syntax is the same as specifying a port no, only it must be a 2-digit number.

If you ask the viewer to connect to a remote host of display number #, the viewer (in general) will use the port 5900+#


So UltraVNC follows this convention, but it has a way to overcome this problem:
Using double colon before the port number, then UltraVNC server and viewer will always treat the specified number as a port number, and will not +5900 to it.

e.g.:
xx.xx.xx.xx::80
User avatar
supercoe
400
400
Posts: 1732
Joined: 2009-07-20 21:27
Location: Walker, MN
Contact:

Re: 2 digit port numbers

Post by supercoe »

Very good, thanks for the solution YY!
http://www.chunkvnc.com - ChunkVNC - Free PC Remote control with the Open Source UltraVNC wrapper InstantSupport!
Post Reply