2021-12-06

IP

IP icon

Every device on the Internet has an IP address. It can be an IPv4 version (e.g. 1.1.1.1) or IPv6 (e.g. 2001:db8:0:1234:0:567:8:1).

Sometimes you need to know your IP or see information about another IP.
There are several services for this purpose:

I wanted something more minimalistic, without styles, to use it from the console with curl.

Not long thinking, I wrote a little service: https://ip.chuhlomin.com/

$ curl -L https://ip.chuhlomin.com
ip: 107.217.36.202
user_agent: curl/7.77.0
asn:
  number: 6079
  org: RCN-AS
geoip:
  country: US
  country_name: United States
  city: Queens
  lat: 40.726
  lon: -73.848

It uses:

Tested only on IPv4, so PRs are welcome: https://github.com/chuhlomin/ip