Get GeoLocation of Computer

by Oct 12, 2016

Here is yet another free source of geolocation information, exposing your current public IP and location information:

#requires -Version 3.0


Invoke-RestMethod -Uri 'http://ipinfo.io'

The result would look similar to this:

 
ip       : 80.187.113.144
hostname : tmo-113-144.customers.d1-online.com
city     : Dortmund
region   : 
country  : DE
loc      : 51.2993,9.4910
org      : AS3320 Deutsche Telekom AG 
 

Twitter This Tip! ReTweet this Tip!