Would you like to learn how to discover your public IP address using Powershell? In this tutorial, we are going to show you how to use Powershell to discover the public IP address of your internet connection using the command-line on a computer running Windows.

• Windows 2012 R2
• Windows 2016
• Windows 2019
• Windows 10

Equipment list

The following section presents the list of equipment used to create this tutorial.

As an Amazon Associate, I earn from qualifying purchases.

Related tutorial - PowerShell

On this page, we offer quick access to a list of tutorials related to PowerShell.

Tutorial Powershell - Discover your public IP address

As an Administrator, start a new POWERSHELL command-line prompt.

Windows 10 - powershell elevated

Discover your public IP address.

Copy to Clipboard

Here is the command output.

Copy to Clipboard

In our example, the public IP address discovered was

Congratulations! You are able to discover your public IP address using Powershell.