I am working on a dedicated server, yet the IP address returns by $_SERVER['SERVER_ADDR']
is different from the real IP address of the server.
Would you happen to know how this is possible? Thanks
you can use,
gethostbyname($_SERVER['SERVER_NAME'])
or
getHostByName(php_uname('n'))