This is my IPv4 address

18.207.238.169

And my hostname is: ec2-18-207-238-169.compute-1.amazonaws.com

IP Address CLI examples

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

Hostname CLI examples

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