Answers for "how to find hostname from ip address in php"

PHP
7

php get ip address

$clientIPAddress=$_SERVER['REMOTE_ADDR'];
Posted by: Guest on August-06-2019
1

php get hostname

<?php
echo gethostname(); // may output e.g,: sandie

// Or, an option that also works before PHP 5.3
echo php_uname('n'); // may output e.g,: sandie
?>
Posted by: Guest on April-14-2021

Code answers related to "how to find hostname from ip address in php"

Browse Popular Code Answers by Language