Need a robust API to Geolocate IPs and fetch other crucial information? Try IPinfo.io.

Your Connection

IP Address 54.237.242.179
User Agent Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/120.0.0.0 Safari/537.36
Language
Referer
Method GET
Encoding gzip, compress, deflate, br
MIME Type text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8
Charset
X-Forwarded-For 54.237.242.179,34.160.111.145

Command Line Interface

$ curl ifconfig.me 54.237.242.179
$ curl ifconfig.me/ip 54.237.242.179
$ curl ifconfig.me/ua Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/120.0.0.0 Safari/537.36
$ curl ifconfig.me/lang
$ curl ifconfig.me/encoding gzip, compress, deflate, br
$ curl ifconfig.me/mime text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8
$ curl ifconfig.me/charset
$ curl ifconfig.me/forwarded 54.237.242.179,34.160.111.145
$ curl ifconfig.me/all ip_addr: 54.237.242.179
remote_host: unavailable
user_agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/120.0.0.0 Safari/537.36
port: 48586
language:
referer:
connection:
keep_alive:
method: GET
encoding: gzip, compress, deflate, br
mime: text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8
charset:
via: 1.1 google
forwarded: 54.237.242.179,34.160.111.145

$ curl ifconfig.me/all.json {"ip_addr":"54.237.242.179","user_agent":"Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/120.0.0.0 Safari/537.36","port":"48586","method":"GET","encoding":"gzip, compress, deflate, br","mime":"text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8","via":"1.1 google","forwarded":"54.237.242.179,34.160.111.145"}