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

Your Connection

IP Address 5.135.140.155
User Agent ArchiveTeam ArchiveBot/20240923.203d40a (wpull 2.0.3) and not Mozilla/5.0 (Windows NT 6.1; WOW64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/42.0.2311.90 Safari/537.36
Language
Referer https://realpython.com/python-http-server/
Method GET
Encoding
MIME Type text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8
Charset
X-Forwarded-For 5.135.140.155,34.160.111.145

Command Line Interface

$ curl ifconfig.me 5.135.140.155
$ curl ifconfig.me/ip 5.135.140.155
$ curl ifconfig.me/ua ArchiveTeam ArchiveBot/20240923.203d40a (wpull 2.0.3) and not Mozilla/5.0 (Windows NT 6.1; WOW64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/42.0.2311.90 Safari/537.36
$ curl ifconfig.me/lang
$ curl ifconfig.me/encoding
$ 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 5.135.140.155,34.160.111.145
$ curl ifconfig.me/all ip_addr: 5.135.140.155
remote_host: unavailable
user_agent: ArchiveTeam ArchiveBot/20240923.203d40a (wpull 2.0.3) and not Mozilla/5.0 (Windows NT 6.1; WOW64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/42.0.2311.90 Safari/537.36
port: 43376
language:
referer: https://realpython.com/python-http-server/
connection:
keep_alive:
method: GET
encoding:
mime: text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8
charset:
via: 1.1 google
forwarded: 5.135.140.155,34.160.111.145

$ curl ifconfig.me/all.json {"ip_addr":"5.135.140.155","remote_host":"unavailable","user_agent":"ArchiveTeam ArchiveBot/20240923.203d40a (wpull 2.0.3) and not Mozilla/5.0 (Windows NT 6.1; WOW64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/42.0.2311.90 Safari/537.36","port":"43376","referer":"https://realpython.com/python-http-server/","method":"GET","mime":"text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8","via":"1.1 google","forwarded":"5.135.140.155,34.160.111.145"}