Here is a one-liner that retrieves your current public IP address:

 
PS> Invoke-RestMethod -Uri http://ipinfo.io


ip       : 87.153.224.209
hostname : p5799e0d1.dip0.t-ipconnect.de
city     : Hannover
region   : Lower Saxony
country  : DE
loc      : 52.3705,9.7332
org      : AS3320 Deutsche Telekom AG
postal   : 30159
timezone : Europe/Berlin
readme   : https://ipinfo.io/missingauth
 

Twitter This Tip! ReTweet this Tip!

Anonymous