This is my IPv4 address

3.228.10.64

And my hostname is: ec2-3-228-10-64.compute-1.amazonaws.com

IP Address CLI examples

$ curl https://ipaddress.tk/ip.php
3.228.10.64
$ http -b https://ipaddress.tk/ip.php
3.228.10.64
$ wget -qO- https://ipaddress.tk/ip.php
3.228.10.64
$ fetch -qo- https://ipaddress.tk/ip.php
3.228.10.64
$ bat -print=b https://ipaddress.tk/ip.php
3.228.10.64

Hostname CLI examples

$ curl https://ipaddress.tk/hostname.php
ec2-3-228-10-64.compute-1.amazonaws.com
$ http -b https://ipaddress.tk/hostname.php
ec2-3-228-10-64.compute-1.amazonaws.com
$ wget -qO- https://ipaddress.tk/hostname.php
ec2-3-228-10-64.compute-1.amazonaws.com
$ fetch -qo- https://ipaddress.tk/hostname.php
ec2-3-228-10-64.compute-1.amazonaws.com
$ bat -print=b https://ipaddress.tk/hostname.php
ec2-3-228-10-64.compute-1.amazonaws.com

FAQ

How do I force IPv4 or IPv6 lookup?

You could pass the appropriate flag to your client, e.g. curl -4 or curl -6.

Or you could use the https://ipv4.ipaddress.tk, or https://ipv6.ipaddress.tk URL.

Is automated use of this service permitted?

Yes, as long as the rate limit is respected. The rate limit is in place to ensure a fair service for all.

Please limit automated requests to a maximum of 1 request per minute.