Using a web service, it is almost trivial to determine your public IP address and information about your ISP:
PS> Invoke-RestMethod -Uri https://ipinfo.io
ip : 188.8.131.52
hostname : p54a5319e.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
ReTweet this Tip!
To get the result you have on the screen, a part of the code is missing. One needs to add "/json" on the end. The complete line is "
Invoke-RestMethod -Uri https://ipinfo.io/json".
Powered by IDERA