Does anyone have a command or batch file that gets one's external IP addresses?
There are lots of websites that will display the information, but extracting the data does not look like an easy task. Perhaps someone else has already worked this out.
Thanks everyone. I took Scott's original suggestion and turned it into an elaborate batch file that gets the current public IP4 address, optionally logs it to a file with a date stamp, and tells me if it has changed since the value was last logged. This is now called as part of my TCSTART.BTM.
Now you tell me -- after I wrote all the code to extract the value using Scott's command :-)
Thanks. Your URL certainly makes things a lot easier, and I updated my batch file. (But it is better to use https.) I kept the old code, but commented out, just in case "dynamicdns.park-your-domain.com/getip" goes away.
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.