Incearca si varianta asta pana la noi sugestii/idei:
Cod:
<?php
$hostname = gethostbyaddr($_SERVER['REMOTE_ADDR']);

echo $hostname;
?>