How to get my external IP address(over NAT) from Windows command-line?

Posted by Diogo Rocha on Super User See other posts from Super User or by Diogo Rocha
Published on 2012-03-26T14:48:36Z Indexed on 2012/03/27 5:32 UTC
Read the original article Hit count: 547

Filed under:
|
|
|
|

Windows "ipconfig" command can only show me the parameters from the ethernet interfaces from my machine(even with the "ipconfig /all" argument), it can show detailed information about the interface, but will never show me my external IP address over a NAT network.

enter image description here

However, there are several websites, such as "What is my IP" that can get and show my external IP addres. So I'm wondering, if is possible to get this value externally, should I expect that there is some way to get this information from a command line at my local machine...

I need to get this value to log on an application that I'm doing with VB Script. There is some way to do this, from a "cmd" on Windows?

© Super User or respective owner

Related posts about Windows

Related posts about command-line