Update: UltraVNC 1.4.3.6 and UltraVNC SC 1.4.3.6: https://forum.uvnc.com/viewtopic.php?t=37885
Important: Please update to latest version before to create a reply, a topic or an issue: https://forum.uvnc.com/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://x.com/ultravnc1
- Reddit community: https://www.reddit.com/r/ultravnc
- OpenHub: https://openhub.net/p/ultravnc

Scan for Forgotton Host Port Number

Post Reply
BillyHow
Posts: 2
Joined: 2006-12-26 17:51
Contact:

Scan for Forgotton Host Port Number

Post by BillyHow »

Is there a better way to find the non-standard port number assigned to a host than trial and error? (When you forget how you set it.)

Has someone written a port-scan routine to check ports 5901 thru 5999 to see which port a host is listening to?
Bill Ashley
andreetje
Posts: 4
Joined: 2007-01-02 12:14

Re: Scan for Forgotton Host Port Number

Post by andreetje »

netstat -a
mattice06082
Former moderator
Former moderator
Posts: 607
Joined: 2006-11-30 00:41
Location: Connecticut, USA

Re: Scan for Forgotton Host Port Number

Post by mattice06082 »

netstat will work if you are on the machine running the server, but if you're at that machine just double click on the eyeball icon and look at what's assigned under Ports.

If you're on a remote machine, you could try using Microsoft's PortQry utility. It allows you to scan a range of ports, but I'm not sure if it will work through the router. The ports may only show up as FILTERED :( .
BillyHow
Posts: 2
Joined: 2006-12-26 17:51
Contact:

Re: Scan for Forgotton Host Port Number

Post by BillyHow »

Thanks to andreetje & mattice06082 for the ideas.

I got the PortQueryUI tool from the link provided by mattice06082.
Adding the following code to the config.xml file worked fine:
<Service Name="WinVNC">
<Port Name="VNCHost" Value="5900-5999" Protocol="TCP"/>
</Service>

However, it's quicker to use portqry in interactive mode (-i) and make some good guesses than wait for polling of the whole range.
Bill Ashley
hphinc
Posts: 7
Joined: 2006-09-01 11:03

Re: Scan for Forgotton Host Port Number

Post by hphinc »

Also, here is what we use:

nmap

www.insecure.org
-Michael
Post Reply