How to get my external IP address (over NAT) from the 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 11:33 UTC
Read the original article Hit count: 608

Filed under:
|
|
|
|

The 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 it 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 address" that can get and show my external IP address. So I'm wondering, 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 VBScript. 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