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

Your Connection

IP Address 152.160.246.246
User Agent Mozilla/5.0 (Windows NT 6.1; WOW64; rv:33.0) Gecko/20120101 Firefox/33.0
Language
Referer
Method GET
Encoding deflate, gzip
MIME Type */*
Charset
X-Forwarded-For 152.160.246.246,34.160.111.145

Command Line Interface

$ curl ifconfig.me 152.160.246.246
$ curl ifconfig.me/ip 152.160.246.246
$ curl ifconfig.me/ua Mozilla/5.0 (Windows NT 6.1; WOW64; rv:33.0) Gecko/20120101 Firefox/33.0
$ curl ifconfig.me/lang
$ curl ifconfig.me/encoding deflate, gzip
$ curl ifconfig.me/mime */*
$ curl ifconfig.me/charset
$ curl ifconfig.me/forwarded 152.160.246.246,34.160.111.145
$ curl ifconfig.me/all ip_addr: 152.160.246.246
remote_host: unavailable
user_agent: Mozilla/5.0 (Windows NT 6.1; WOW64; rv:33.0) Gecko/20120101 Firefox/33.0
port: 53378
language:
referer:
connection:
keep_alive:
method: GET
encoding: deflate, gzip
mime: */*
charset:
via: 1.1 google
forwarded: 152.160.246.246,34.160.111.145

$ curl ifconfig.me/all.json {"ip_addr":"152.160.246.246","user_agent":"Mozilla/5.0 (Windows NT 6.1; WOW64; rv:33.0) Gecko/20120101 Firefox/33.0","port":"53378","method":"GET","encoding":"deflate, gzip","mime":"*/*","via":"1.1 google","forwarded":"152.160.246.246,34.160.111.145"}