Does anyone have a script on emailing a public IP address whenever it changes, for WINDOWS?
-
Does anyone have a script on emailing a public IP address whenever it changes, for WINDOWS? Possibly something that I can set up a schedualed task to run. I am not a coder/scripter but I would like to get into it for automation purposes. Im a smart guy and I adapt well with new concepts but I am more trained on the network admin side of things (yet Im stuck in a software support desk job). So, if I sound out of place or ignorant let me know but I would appreciate the help. I have read plenty of articles on people wanting the same script as me but they are always some kind of Bash script. I put Suse on a virtual box on my server at home but I can't seem to get the bash script to work (frankly, I would rather have a windows script or batch file to run). I have a forwarder set up on my router so that I can remote in from where ever, but my dynamic IP changes often. I know I can set up a free domain to manage this but Im to interested on getting this to work because it is just more fun. Im a newby, so be descriptive please.
-
Answer:
There are many ways you can do this. You need a way to determine your external IP address, and a way to send an email. I was a little bored and had a go at making one :) (its not a masterpeice, but it successfully emailed me my IP address). It checks to see what your ip was last time the script ran, and does not send a message if its the same. i used curl ( http://curl.download.nextag.com/download/curl-7.19.5-win32-nossl.zip ) to determine the external ip address, using a web-based ip checker and blat ( http://sourceforge.net/projects/blat/files/ ) to send an email the batch file can be found here: http://dl.dropbox.com/u/997026/compair.bat hope it helps.
[email protected] at Answerbag.com Visit the source
Related Q & A:
- How can I force the login to a specific ip address?Best solution by Stack Overflow
- What's the difference between a private franchise and a public franchise?Best solution by answers.yahoo.com
- Does anyone know a site where I can get a complete Man of La Mancha script for free?Best solution by Yahoo! Answers
- What is the difference between a private company and a public company?Best solution by Yahoo! Answers
- Does anyone have a good recipe for a seafood chowder?
Just Added Q & A:
- How many active mobile subscribers are there in China?Best solution by Quora
- How to find the right vacation?Best solution by bookit.com
- How To Make Your Own Primer?Best solution by thekrazycouponlady.com
- How do you get the domain & range?Best solution by ChaCha
- How do you open pop up blockers?Best solution by Yahoo! Answers
For every problem there is a solution! Proved by Solucija.
-
Got an issue and looking for advice?
-
Ask Solucija to search every corner of the Web for help.
-
Get workable solutions and helpful tips in a moment.
Just ask Solucija about an issue you face and immediately get a list of ready solutions, answers and tips from other Internet users. We always provide the most suitable and complete answer to your question at the top, along with a few good alternatives below.