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

dhcp ip address changed

Post Reply
ekkehard
Posts: 4
Joined: 2009-11-19 17:28

dhcp ip address changed

Post by ekkehard »

Hello,
we set up several Win XP PCs with UVNC. The PCs sit in an 19" rack, and are *not* connected to the network at startup. When UVNC starts, it binds to the IP Address 127.0.0.1
When we want to work with one of the PC, we attach the network cable, the PC updates it's IP address from the DHCP server. Unfortunally I found no way to force UVNC to bind to the new IP Address. Logically it is impossible to log on to the PC.
Question: how can I force UVNC to search for available IP addresses?
Best regards
Ekkehard

P.S.: It is not possible to attach the network before start up
YY
200
200
Posts: 996
Joined: 2006-11-13 15:11

Re: dhcp ip address changed

Post by YY »

Is it possible to use PsService to restart the uvnc_service remotely when that pc is online?
ekkehard
Posts: 4
Joined: 2009-11-19 17:28

Re: dhcp ip address changed

Post by ekkehard »

Are you kidding :-)? If the instrument would be reachable, I wouldn have the need to use uvnc. But at the end it seems to me that I have to write my own tool that will restart the service when the IP address changed.
I assumed that there would be a switch in uvnc that can do that job!
Thanks Ekkehard
YY
200
200
Posts: 996
Joined: 2006-11-13 15:11

Re: dhcp ip address changed

Post by YY »

ekkehard wrote:Are you kidding :-)? If the instrument would be reachable, I wouldn have the need to use uvnc.
I mean to restart the uvnc_service when you attach the network cable to that pc.

When you plug in the LAN cable, the pc will get the IP from DHCP server and become online, then it may possible to use PsService to restart (remotely) the uvnc_service running on it.

Once the uvnc_service is restarted, it will bind the available IP again, and you are able to log on with UVNC.

Of course, I'm not sure if this will happen as what I supposed to be.
ekkehard
Posts: 4
Joined: 2009-11-19 17:28

Re: dhcp ip address changed

Post by ekkehard »

Yes, I had understand the procedure. The problem is that if the units are out of my office I have no chance to reach them with the PsService tool.
As said before I will build something around :-)
Thanx Ekkehard
ekkehard
Posts: 4
Joined: 2009-11-19 17:28

Re: dhcp ip address changed (a work around)

Post by ekkehard »

As said above, here the tool that does a "work around" to solve the problem.
The zip contains an exe file which is a windows service.
After installation (install.bat) and set to running state (Control Panel->Administrative Tools->Services, there "start" at the "UVnc Service Ip Changed Restarter" service) the servce checks frequently (every 10s) if the local IPs changed. If so (and uvnc service is running) the program stops the uvnc service and start again. This will force the uvnc service to listen on the new IP address.

Hope that helps.

http://www.domis.de/uvnctools/UVNCRestarter.zip

BTW: it should not be a very big problem for a traine uvnc collaborator to do something simmilar direct in the uvnc source code :-)
redge
1000
1000
Posts: 6797
Joined: 2004-07-03 17:05
Location: Switzerland - Geneva

Re: dhcp ip address changed

Post by redge »

ekkehard wrote:Question: how can I force UVNC to search for available IP addresses?
solution
try uvnc 1.0.9.6 beta
Rudi De Vos wrote:*The interface that update the tray ip address is using DNS...
-Functions replaced by non DNS version
This allow us to call it multiple times without the DNS overhead. This is
the reason the current tray doesn't update the ip change, overhead was
to big. In cases the DNS was set by isp and broken internet connections
this function was extreme slow ( dns timeout)
you need uvnc 1.0.9.x installed before, then replace only the winvnc.exe and uvnc_settings.exe
http://www.uvnc.eu/download/winvnc1096Beta.zip
UltraVNC 1.0.9.6.1 (built 20110518)
OS Win: xp home + vista business + 7 home
only experienced user, not developer
Post Reply