Reputation: 644
I want to get machine IP address in PHP so i am using function
<?php echo gethostbyname($serverName); ?>
Its works for all my server machine but it returns domain name for particular IP address for some machine. I don't know why its returning domain name for particular machine and how to get IP address of that particular machine.
Thanks in advance.
Upvotes: 1
Views: 1045