How to Find Out the Public IP Address of Your Network Using PowerShell on Windows 10


As part of the internet setup process, the Internet Service Provider
also provides public IP (Internet Protocol) address, which is assigned to
the router (modem) to identify the network and connect online.

While usually, we do not need to worry about these details, sometimes it’s
important to know the current public IP address to troubleshoot connectivity
problems or access remote services, such as SSH File Transfer Protocol,
(Virtual private network) VPN, or private website without a domain
name. 


To find out the public IP address of your network using PowerShell on
Windows 10, you can follow these steps:
Open PowerShell: Press the Windows key + X, then select “Windows
PowerShell (Admin)”.
Type the following command: 
(Invoke-WebRequest ifconfig.me/ip).Content.Trim()

Press Enter to run the command.
Wait for the command to finish running.
After the command finishes running, the public IP address of your network
will be displayed in the PowerShell window.
You can copy the IP address to the clipboard by selecting it and pressing
Ctrl+C.
Alternatively, you can also use the following command to display your
public IP address:
curl ipecho.net/plain


(adsbygoogle = window.adsbygoogle || []).push({});

This command will display your public IP address in the PowerShell window.

Leave a Comment

Your email address will not be published. Required fields are marked *