How To Get Your IP and ONLY Your IP in Windows
Fri 09 October 2009
#Code
Sometimes you need to know your Windows machine’s IP. For example, if you would like to update your dynamic DNS entry from a script file. Here’s a hack that gets the job done.
This is from someone good with windows scripts, updated with some extra ‘shifts’ to get it to work under XP. Check out the link for an explanation. Save this in a batch file, I call mine ‘GetIP.bat’: