This is my IPv4 address

34.236.170.48

And my hostname is: ec2-34-236-170-48.compute-1.amazonaws.com

IP Address CLI examples

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

Hostname CLI examples

$ curl https://ipaddress.tk/hostname.php
ec2-34-236-170-48.compute-1.amazonaws.com
$ http -b https://ipaddress.tk/hostname.php
ec2-34-236-170-48.compute-1.amazonaws.com
$ wget -qO- https://ipaddress.tk/hostname.php
ec2-34-236-170-48.compute-1.amazonaws.com
$ fetch -qo- https://ipaddress.tk/hostname.php
ec2-34-236-170-48.compute-1.amazonaws.com
$ bat -print=b https://ipaddress.tk/hostname.php
ec2-34-236-170-48.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.