Is there a program that will report a dynamic IP address to an HTML page on a server.

Posted on 2004-10-19
Medium Priority
Last Modified: 2010-04-10
We are getting new cable modem service as our current dsl is lacking...The only problem is they won't be offering static ip's for a month after we get it?

My boss uses remote desktop to get into his computer from home, but without a static ip address we can't count on it being the same all the time.  I don't PLAN on ever disconnecting the cable, so we should technically be pretty much static all the time....

Is there a program that I can run on one of the computers here to report our wan IP address to remote desktop directly?  Or update a web page so that you can just click a link and log into remote desktop webpage?

Hopefully this is free, but if the features are right, I will pay for them.


BTW, this is pretty urgent as we get this new service on friday.
Question by:supertrooper
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 4
  • 3
  • 2
  • +2
LVL 15

Accepted Solution

scampgb earned 1400 total points
ID: 12349206
Hi supertrooper,
I suggest that you look into something like the DynDNS service.
This creates a domain name that is always updated to point to your current IP.  You will need to install a small application on the machine to support this.

Take a look at http://www.dyndns.org/services/dyndns/ for more info.

This route means that your boss doesn't have to bother looking at a webpage, but can just connect to the special DNS name for your server.

Does that help?

Author Comment

ID: 12349238
I was hoping for a free solution, or something I can run from our network first.  I have seen things like this but, we can deal with looking at a web page. ;)   Because, our remote access is a web page.  So, If I could have the webpage put into an html file and just insert a link like http://xxx.xxx.xxx.xxx/tsweb I would be much happier.  If no one else answers I'll give partial credit.
LVL 13

Expert Comment

ID: 12349358
I think I came up with a decent way to do what you want.  You need to run a scheduled task (maybe once an hour) to launch a program to grab a web page from www.whatismyip.com (a site that reports your public address).

You can get the program "wget" for Windows at this location:


Just extract the files on your web server.  Set up a scheduled task to run this command '<directory location>\wget.exe www.whatismyip.com'.  This will get you a copy of their index.html file with your public IP address listed.  Now you just need to move that html file to the right directory so it is accessible by web users and you're set.

If you need more details on how to do this, just write back.  

Fill in the form and get your FREE NFR key NOW!

Veeam® is happy to provide a FREE NFR server license to certified engineers, trainers, and bloggers.  It allows for the non‑production use of Veeam Agent for Microsoft Windows. This license is valid for five workstations and two servers.

LVL 15

Assisted Solution

scampgb earned 1400 total points
ID: 12349359
The basic DynDNS service is free.  There are other providers who do the same thing.

In your environment, you would register a name with them (myserver.dyndns.org for example).  On your webpage you'd simply connect to http://myserver.dyndns.org/tsweb

On the web-page front, you would need the server to be able to work out what the external IP address is.  How is your server connected to the Internet?  Does it have the external IP address on one of it's interfaces or do you use a router/firewall?

Expert Comment

ID: 12349390
Well I can offer a partial suggestion but I'd need more information to know where to go after.. but to start with you can write a quick script to put in event manager, and run it every hour or so which will write your ip information to a file.. create a .bat file with:

ipconfig /all >> C:\ipconfig.txt

You can have the locationa nd file name anywhere you want it... after that I'm not sure what options you have available, you could FTP the file to a website, you could write a script to telnet to your SMTP and email it every hour... what options do you have abvailable?

LVL 15

Expert Comment

ID: 12349518
Eodred: I was thinking about that, but it would depend on the server itself having the external address.  Now if supertrooper used a router, the server itself wouldn't know.

ipconfig |find "IP Address" > c:\ipconfig.txt would be a bit neater.
You could encapsulate all that in a batch file that writes a HTML file with no great effort.
We need to know how the connection works at present though before pursuing that :)

Expert Comment

ID: 12349612
lol.. yes that would be neater but I'm generally one of those get'er'done people that just goes the easy quick route... I was having the same issue, for moving forward as you however, what kind of connection does he have and access to what...

Expert Comment

ID: 12366065

The DynDNS service is a Quick FREE option.  Also, in today's internet world it's silly not to have some sort of hardware firewall in front of your server.  A cheap Linksys Router like a BEFSR41 (I've seen them as low as $29 after rebates) should be out front.  Also, the firmware in the router supports configuring a connection to DynDNS, so the router updates the service and you don't need software on your server or workstation.  One of the issues however, is that if DynDNS doesn't see any IP address changes over a period of time (I think 30 days and Cable connections don't change too often) it send an email to the registered account to verify/refresh the data, or the record gets removed (happened to a client of mine).  You just need to setup an application filter in the router to support the remote desktop software.

Author Comment

ID: 12390829
Sorry all, have been without connection to internet for a while...  WOW  scampgb, you were right. ;)  IT was easy to use that dns service.  Worked like a charm and it's free.

Thanks again everyone.


Author Comment

ID: 12390833
Oh yeah.. 100 bonus points to you for the free tip.

Thanks again. ;)
LVL 15

Expert Comment

ID: 12392305
Glad I could help :-)

Featured Post

Industry Leaders: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

I had an issue with InstallShield not being able to use Computer Browser service on Windows Server 2012. Here is the solution I found.
This article will show how Aten was able to supply easy management and control for Artear's video walls and wide range display configurations of their newsroom.
After creating this article (http://www.experts-exchange.com/articles/23699/Setup-Mikrotik-routers-with-OSPF.html), I decided to make a video (no audio) to show you how to configure the routers and run some trace routes and pings between the 7 sites…
Monitoring a network: how to monitor network services and why? Michael Kulchisky, MCSE, MCSA, MCP, VTSP, VSP, CCSP outlines the philosophy behind service monitoring and why a handshake validation is critical in network monitoring. Software utilized …

718 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question