Hello,
I need a piece of advice about a configuration setup. Hope someone might help.
The server PC is behind a NAT router that I cannot configure and has a static/private IP address. The server is running unattended most of the time. (the NAT router itself has a static/public IP address)
The client PC is behind a NAT gateway, but this time I have full access to the configuration parameters (i.e. I can edit the port forwarding parameters). The client PC has a static/private IP address and the NAT gateway has a static/pubblic IP address.
[client] <----> [configurable NAT] <--- internet ---> [NAT] <----> [server]
Now the question is: do you really need an external repeater or NAT2NATserver?
Couldn't I just properly configure the NAT on the client side?
In this case how can I configure ultraVNC server to run anattended? (no one on the server side to activate singleclick)
I apologize if this kind of question has already been asked.
Cheers
Luca
Celebrating the 22th anniversary of the UltraVNC: https://forum.uvnc.com/viewtopic.php?t=38031
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
- Bluesky/AT Protocol: https://bsky.app/profile/ultravnc.bsky.social
- 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
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
- Bluesky/AT Protocol: https://bsky.app/profile/ultravnc.bsky.social
- 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
NAT2NAT help for a Newbe
-
- 8
- Posts: 25
- Joined: 2004-12-05 22:17
- Location: Denmark
Re: NAT2NAT help for a Newbe
You do not need an external repeater or nat2nat server. You can forward port 5500 on the client-router (maybe restricted to the server-routers public IP), and start the session from the server with "Add new client".
You can try to use "Scheduled Tasks" to run the winvnc-server with command-line options to connect to your viewer once an hour or whatever timeinterval you want.
You can try to use "Scheduled Tasks" to run the winvnc-server with command-line options to connect to your viewer once an hour or whatever timeinterval you want.
heuummm!!!
I built up the set up as suggested... but I must be forgetting something obvious because the connection is initiated (The server is calling properly the viewer) but the viewer window stay black... and after about a minute I receive the "failed to connect" message.
On the viewer side I'm forwarding port 5500 and port 5900 and running the viewer in listening mode.
On the server side I'm executing a very simple BAT file:
cd C:\Program Files\UltraVNC\
winvnc.exe -connect server.example.net
What do you think?
do you have other suggestions?
Cheers
Luca

I built up the set up as suggested... but I must be forgetting something obvious because the connection is initiated (The server is calling properly the viewer) but the viewer window stay black... and after about a minute I receive the "failed to connect" message.
On the viewer side I'm forwarding port 5500 and port 5900 and running the viewer in listening mode.
On the server side I'm executing a very simple BAT file:
cd C:\Program Files\UltraVNC\
winvnc.exe -connect server.example.net
What do you think?
do you have other suggestions?
Cheers
Luca
Guest,
vncviewer side:
"C:\Program Files\UltraVNC\vncviewer.exe" -listen
is only same result as:
"C:\Program Files\UltraVNC\vncviewer.exe" -listen 5500
winvnc side:
"C:\Program Files\UltraVNC\winvnc.exe" -connect host.domain.tld
is only same result as:
"C:\program Files\UltraVNC\winvnc.exe" -connect host.domain.tld 5500
vncviewer can't listen port 5900 for accept incoming connection of winvnc
winvnc can't make outgoing connection to port 5900 !
port 5900 is only incoming connection for winvnc
vncviewer side:
"C:\Program Files\UltraVNC\vncviewer.exe" -listen
is only same result as:
"C:\Program Files\UltraVNC\vncviewer.exe" -listen 5500
winvnc side:
"C:\Program Files\UltraVNC\winvnc.exe" -connect host.domain.tld
is only same result as:
"C:\program Files\UltraVNC\winvnc.exe" -connect host.domain.tld 5500
vncviewer can't listen port 5900 for accept incoming connection of winvnc
winvnc can't make outgoing connection to port 5900 !
port 5900 is only incoming connection for winvnc
Last edited by redge on 2005-09-10 00:00, edited 4 times in total.
UltraVNC 1.0.9.6.1 (built 20110518)
OS Win: xp home + vista business + 7 home
only experienced user, not developer
OS Win: xp home + vista business + 7 home
only experienced user, not developer
Hi Redge,
thanks for the tip. I removed the useless port forwarding on port 5900.
The system now is more or less working.
I say more or less because the VNCviewer is very unstable (hanging, on average, 50% of the connection attempts).
It's very frustrating and I cannot find out a way to solve the problem.
I tried to reinstall the viewer and the server without much success.
any ideas?
Cheers
Luca
thanks for the tip. I removed the useless port forwarding on port 5900.
The system now is more or less working.
I say more or less because the VNCviewer is very unstable (hanging, on average, 50% of the connection attempts).
It's very frustrating and I cannot find out a way to solve the problem.
I tried to reinstall the viewer and the server without much success.
any ideas?
Cheers
Luca
did you read it?
[topic=4083][/topic]
and really properly forwarded port 5500 inside your home router and forwarded to your vncviewer computer private IP address ?
helpdesk.txt with correct public_static_IP ?
[topic=4083][/topic]
and really properly forwarded port 5500 inside your home router and forwarded to your vncviewer computer private IP address ?
helpdesk.txt with correct public_static_IP ?
UltraVNC 1.0.9.6.1 (built 20110518)
OS Win: xp home + vista business + 7 home
only experienced user, not developer
OS Win: xp home + vista business + 7 home
only experienced user, not developer
Hi Redge,
thanks for trying to help.
I punched a hole (in the firewall) on port 5900 and 5500 on both PCs.
I properly configured the home router to forward TCP and UDP on the PC address.
The problem here is that the VNCviewer might work for few minutes and then stop responding.
Do you know if packet losses in the network might be responsible for the instability?
Cheers
Luca
thanks for trying to help.
I punched a hole (in the firewall) on port 5900 and 5500 on both PCs.
I properly configured the home router to forward TCP and UDP on the PC address.
The problem here is that the VNCviewer might work for few minutes and then stop responding.
Do you know if packet losses in the network might be responsible for the instability?
Cheers
Luca
older vncviewer <=1.0.0The problem here is that the VNCviewer might work for few minutes and then stop responding
change quick option=auto to another value like tight
vncviewer 1.0.1
quick option=auto
auto switching encoder fixed.
UltraVNC 1.0.9.6.1 (built 20110518)
OS Win: xp home + vista business + 7 home
only experienced user, not developer
OS Win: xp home + vista business + 7 home
only experienced user, not developer