Automated IP Address Notification??

1070 pts.
Tags:
E-mail applications
IPv4
Microsoft Exchange
Microsoft Windows
Networking
Situation is: One of my customers has DSL with a SonicWall firewall with VPN configured, so that they can get back to their server while on the road. Problem is: They've got a dynamic IP Address, and don't want to pay money for a fixed one (would add > $40/month). The DHCP IP Address doesn't change very often, but it does change if the DSL modem gets restarted. What I'd like to do is set up an automated email every week (or whenever) to notify them of the current IP address - WITHOUT one of them having to dig through the original headers to find it (the IP address). The automated email isn't a problem - question is: Is there an automated (or automate-able) way to get the actual IP address that can be run from a script of some sort? I might be able to cobble together something that does an HTML query, and parse out the reply, but that's really ugly. Does anyone know of an easier way? Thanks, Bob

Answer Wiki

Thanks. We'll let you know when a new response is added.

A – Dynamic DNS is a web service requiring registration. It use a straight forward client to send updates to the database of addresses.

You don’t specify which DSL, or if the Sonic Firewall is providing NAT internally. If NAT’ed the simple scripts won’t work as they read from IPCONFIG.

Try a macro recorder to follow the steps as you get the DSL’s IP address at the console. If that works you have your script and only need the e-mail function.

The simplest answer is Dynamic DNS.

Discuss This Question: 12  Replies

 
There was an error processing your information. Please try again later.
Thanks. We'll let you know when a new response is added.
Send me notifications when members answer or reply to this question.

REGISTER or login:

Forgot Password?
By submitting you agree to receive email from TechTarget and its partners. If you reside outside of the United States, you consent to having your personal data transferred to and processed in the United States. Privacy
  • Boardinhank
    If this is a customer then they must do some buisness, do they have a web site or at least an email server? If so do you maintain these as well? If it were me in a apache world I would make a web page that isnt really out there for any other reason than a script of yours that hits it once a week, this will generete a log, you can track the new ip address from the log or make it a php page that checks the ip and actually emails it to you all in the same shot. Then from any windows machine inside their network schedule a task to hit the web site and you have your ip address. If you go to whatismyip.com you can also see what your dsl address is, so depending on your resources let me know what you have available and I can help further.
    60 pointsBadges:
    report
  • VietBob
    Our VPN used to be on a dynamic IP, and we had fairly good success with Zone Edit, which provides free DNS for your domain, combined with DirectUpdate, which runs as a Windows 2000/XP Service, monitors your IP, and updates the DNS Servers when it changes. If you don't have a domain or zone registered for the VPN Host, I believe you may be able to configure DirectUpdate to notify you of changes in IP -- it's very flexible, and the author is very supportive.
    0 pointsBadges:
    report
  • Bobkberg
    Thanks all for your responses so far - but they indicate that I have failed to describe the problem adequately. This is a residential DSL, with a DHCP address from SBC - so the DNS lookup is tied to SBC's addressing scheme, and these people work out of their home. I have installed the SonicWall (with VPN) so that they can get back to their server - but if either SBC or the DSL router hiccup - their IP address changes. At the moment, I've discovered that I can use SNMP on the inside to get the IP Address of Interface 0 (The WAN port), but all my SNMP utilities are GUI, and I need a command line one. I'm not about to buy them a copy of the MKS toolkit just to get their SNMPGET.EXE utility - at $400. I'm now looking for a simple stand-alone command-line utility that will return a specified MIB variable - then I can email that as text. Any ideas? Thanks, Bob
    1,070 pointsBadges:
    report
  • Michael711
    Do you need to specify an IP address or can you have them reference a name? If a name reference is possible, you can have them register with DynDNS.org. The can select a customer name within one of the DNS spaces that DynDNS already has setup (free), or you can choose a completely custom FQDN (small charge). The DNS names will be pointed to their SBC IP address. DynDNS has a client that can run on their home PC/Server or many of the consumer and SOHO DSL/Cable routers are starting to support DynDNS directly (Linksys is one, not sure about SonicWall). The DynDNS client will not only send an update of the DNS information to the Internet servers when/if the IP address changes, bt it will also send an email of the event with the updated information to womever you like. Check out this link: http://www.dyndns.org/services/dns/dyndns/ Hope this helps. Mike
    0 pointsBadges:
    report
  • Will6659
    If they have an email program on thier home computer that can send some sort of vacation response to an email received. They could just email themselves from a hotmail type account, wait for the response email and read the headers, it will give to ip address.
    15 pointsBadges:
    report
  • Larrythethird
    If you have a registered domain name, you can use a free service like EveryDNS. My residential web server updated my IP address daily to their free service, which then propagated out to the internet. This was working fine for over a year until Adelphia blocked EVERY port in a bid to generate more money from end users. All you have to do is point your domain name registra to the EveryDNS sites and the have you VPN clients point to the domain name, rather than the IP address.
    0 pointsBadges:
    report
  • Howard2nd
    Mea culpa mea culpa mea maxima culpa. I didn't read all the replies and your comments. Google 'Command Line SNMP' use the quotes. You should finnd the specific details you need. It is not possible to google DOS and get Disk Operating System any more it always comes back Denial of Service. Which is what you get if you search SNMP DOS or DOS SNMP. I saw a couple of network/lan specific scripts. Good luck.
    30 pointsBadges:
    report
  • Dalejanus
    Have the users go to this web site: http://www.whatismyip.com/ It should give them their current IP. You will have to train them on what do to with it. But it's really simple and clear and easy. ---Dale
    0 pointsBadges:
    report
  • TedRizzi
    a command file with this syntax will create a notepad file that will have that info. ipconfig > info.txt you can then schedule it to run when ever you like.
    0 pointsBadges:
    report
  • TedRizzi
    a command file with this syntax will create a notepad file that will have that info. ipconfig > info.txt you can then schedule it to run when ever you like.
    0 pointsBadges:
    report
  • Nephi1
    In regards to using a dynamic DNS server. How would one set up a subdomain so it could be hosted through the dynamic DNS server, and that it manages the DNS records for all the subdomains there after. Eg. domain.com - Hosted at paid site subdomain.domain.com - To be hosted on a home PC & the DNS records for this subdomain are hosted on the home PC sub.subdomain.domain.com - Hosted on the home PC as well
    0 pointsBadges:
    report
  • VietBob
    Bob, DirectUpdate (http://www.directupdate.net/index.html) will check the IP as often as you specify, and it can send email to as many addresses as you like with the new information. While it was designed to keep Dynamic DNS services updated, you can have it do nothing but send an email. It's freeware (although the author welcomes donations), it runs as a Win2K/XP Service, it's immensely customizable, and if I understand your exact requirements it will solve your problem! -Bob 2
    0 pointsBadges:
    report

Forgot Password

No problem! Submit your e-mail address below. We'll send you an e-mail containing your password.

Your password has been sent to:

To follow this tag...

There was an error processing your information. Please try again later.

REGISTER or login:

Forgot Password?
By submitting you agree to receive email from TechTarget and its partners. If you reside outside of the United States, you consent to having your personal data transferred to and processed in the United States. Privacy

Thanks! We'll email you when relevant content is added and updated.

Following