visit via browser: https://ipinfo.io/

or from bash:

curl ipinfo.io
{
  "ip": "123.123.123.123",
  "hostname": "domain.com",
  "city": "City",
  "region": "Region",
  "country": "DE",
  "loc": "49.XXXX,10.XXXX",
  "postal": "12345",
  "org": "Hetzner Online GmbH"
admin