This is my IPv4 address

35.173.234.237

And my hostname is: ec2-35-173-234-237.compute-1.amazonaws.com

IP Address CLI examples

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

Hostname CLI examples

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