Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations derfloh on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Retrieving the WAN IP address

Status
Not open for further replies.

dlpastel

Programmer
Joined
Aug 8, 2002
Messages
114
Location
US
My computer is behind a firewall so ipconfig /all returns only the address 192.168.1.100
The ip is a static ip and changes all the time. I need to be able to retrieve the real ip address automatically.

I can get the real ip by going to but I need to retrieve it automaticall ie: using a batch file possibly since I am not always there

Any ideas?

Thanks,
Dan
 
I found a cool utility called cmdview.exe that you can get from that will tell you the wan ip and also write it to a file.
 
That jpsoft utility is pretty cool... from the looks of it it goes out in the background and connects to a webserver at the IP address 80.82.99.230 which sends the IP address back to the program. If the guy who runs it ever decides to shut down the website, or his IP address changes then the app will stop working... doesn't sound like something you would want to use for anything mission critical!
 
You meant your PC is behind the router or firewall? Just go to the router web console and you can see the external IP
 
What I really would like is a app that looks at the router and writes to a file.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top