Because of DynDNS.org service is not free of charge in future I want to create and use my own DynDNS service. I have found some PHP scripts which save my local IP address into a text file. And the PHP script can be used by my router ("AVM FritzBox") to update the IP address automatically every time my IP address is changed after (automatic 24 hour) reconnect.
The PHP script can also redirect to my local IP address. But because the script which redirects to my home IP is a PHP script it only executes when called via HTTP. So "Single Click UltraVNC " don’t get the IP address.
In "helpdesk.txt" I have this line:
-connect mydyn.dyndns.org: 5500 -noregistry
Can "Single Click UltraVNC " be enhanced (feature update ?) to read the IP address out of a TXT file ? E.G.:
-connect mydomain.com/mydyn/HomeIP.txt:5500 -noregistry
And create itself a correct command line like:
-connect 8.8.8.8:5500 -noregistry
(when "HomeIP.txt" has only the example IP address 8.8.8.8)
Or has somebody an other solution ?
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
Use self-made DynDNS with Single Click UltraVNC
Re: Use self-made DynDNS with Single Click UltraVNC
I use freedns.afraid.org to host my domains as well as for dynamic DNS. I believe they provide a service similar to DynDNS should you not have your own domain to work with. I highly recommend them.
-Ben
Re: Use self-made DynDNS with Single Click UltraVNC
OK - there are several free of charge alternatives. But after the experience with DynDNS.org I want to avoid external provider.Bonji wrote:I believe they provide a service similar to DynDNS should you not have your own domain to work with.
What I have done - with no success:
- Have created a subfolder on my webspace: www.MyDomain.com/mydyn/
- Have created a subdomain for my webspace: www.MyDyn.MyDomain.com
- Have redirected this subdomain to this folder: www.MyDomain.com/mydyn/
- Have created a .htaccess within folder www.MyDomain.com/mydyn/ which allows PHP execution:
Code: Select all
AddHandler x-httpd-php5 .php .php5 .htm .html
- Have placed this PHP script as index.php in folder www.MyDomain.com/mydyn/:
Code: Select all
<? // Manual update IP address: www.MyDomain.com/folder/filename.php?pass=Password&myip=<ipaddr> // Router AVM Fritzbox substitutes <ipaddr> with actual IP address $pwort = 'Password'; // Here you should enter personal password to renew the IP. $dyntxt = "homeIP.txt"; // File name, which contains the IP address $pworttest = $_GET["pass"]; $IP = $_GET["myip"]; // If file NOT exist, create dummy if (!file_exists($dyntxt)) { $datei = fopen("$dyntxt", "w+"); fwrite($datei, "127.0.0.1"); fclose($datei); } // If password is correct renew the IP if($pworttest==$pwort) { $a = fopen("$dyntxt", "w"); $dynamicip = $_SERVER["REMOTE_ADDR"]; fwrite($a, $IP); fclose($a); } // If no password then read IP and forward only else { $a = fopen("$dyntxt", "r+"); $dynamicip = fread($a,filesize($dyntxt)); fclose($a); $url="http://".$dynamicip; header("Location: $url"); // Here the forwarding occurs } ?>
- Have tested to add IP address from Google:
www.MyDomain.com/mydyn/index.php?pass=Password&myip=173.194.32.244 - Have checked if IP address from Google is in "homeIP.txt": OK
- Have open www.MyDyn.MyDomain.com: Redirected to Google; OK
- Have tested to add my local IP address:
www.MyDomain.com/mydyn/index.php?pass=Password&myip=X.X.X.X - Have checked if local IP address is in "homeIP.txt": OK
- Have tested winvnc:
winvnc.exe -connect MyDyn.MyDomain.com:5500 -noregistry
Result: winvnc.exe icon appears in systray - and disappears after 1 second; no connection established. - Have tested winvnc with local IP address:
winvnc.exe -connect X.X.X.X:5500 -noregistry
Result: connection established.