Get IP address
curl ipconfig.io
Get the country name of IP
curl ipconfig.io/country
Get the city name of IP
curl https://ipconfig.io/city
Get ASN
curl https://ipconfig.io/asn
Check port status
curl https://ipconfig.io/port/<port_number>
example:
curl https://ipconfig.io/port/80
Get complete IP details as JSON
curl https://ipconfig.io/json
Credits => https://ipconfig.io/