Normally, if we want to find the public IP Address we use, we go to google and search “what is my ip address”. But if you use Linux, you can get your public IP Address from the command line using curl command. The curl command with ifconfig.me argument will show your public IP Address. If you are trying to find out what your public external IP address is, you typically go to a web site specifically for this purpose, such as ipchicken.com or whatsmyip.org. Finding your public IP from the command line is just as easy. Simply enter the following command into a command prompt window: nslookup myip.opendns.com resolver1.opendns.com Dec 06, 2018 · In one of my PowerShell scripts, I needed to determine the current external IP address of the Windows computer from the command line or (best) with some simple PowerShell function. There are quite a few web sites where you can find out your public IP address, but I don’t understand how to access them from my PoSh script and return the data

May 12, 2015 · Need to know your external/public IP address? Just use the following Invoke-WebRequest one-liner in PowerShell 3.0 and above. As a bonus, you can also get additional IP information, including the hostname, using ipinfo.io‘s JSON web service, and PowerShell 3.0's ConvertFrom-JSON.

An IP address or IP number is a unique number that's used by the Internet protocol (IP) to identify a computer or "host" that is connected to the Internet. The present version of the IP address, IPv4 (IP version 4) is containing a 32-bit value that is limiting the total number of addresses to approximately 4.3 billions.

Oct 20, 2019 · In the above command, we used api.ipify.org to find public IP address. In addition to that uri, there are several other options available. You can use any of the following sites to get the public IP address.

Jun 27, 2018 · Use dig command to find your public IP address. The dig command is a DNS lookup utility for Linux systems to look up your public IP address by connecting to the OpenDNS servers. dig +short myip.opendns.com @resolver1.opendns.com Command 2 –