So I was trying to figure out an easy way to get a GeoLocation from an IP address. I wanted a one liner that could get the info instead of having to go to a web page.
The info.io web site did the trick. It outputs in json format.
curl ipinfo.io/<ip address>
EX:
Powershell:
(Invoke-WebRequest http://ipinfo.io/<ip address>/json).Content
EX:
No comments:
Post a Comment