this snippet displays the IP address of the user and tries to get the hostname.

unfortunately the built-in PHP function gethostbyaddr() has a very long timeout,

this snippet displays the IP address of the user and tries to get the hostname. unfortunately the built-in PHP function gethostbyaddr() has a very long timeout,

your current IP address is 54.198.165.74

your current hostname (if any) is ec2-54-198-165-74.compute-1.amazonaws.com