

Get the internet host name or ISP corresponding to a given IP address.
Most people know how to find and display a visitor's IP address. A visitor's ISP can also be found and displayed much like a visitor's IP address.
Code:
------------------------------------------------------------------------
<?php
$hostname = gethostbyaddr($_SERVER['REMOTE_ADDR']);
echo $hostname;
?>
------------------------------------------------------------------------
In action:
2600:1f28:365:80b0:dc0d:d9fa:3f9d:916e