
Originally Posted by
DrByte
Try using zen_get_ip_address() instead of $_SERVER['REMOTE_ADDR']
Dr Byte,
I've added couple things under tpl_footer.php just to see what values these variables return as zen_get_ip_address() also returned only 0.0.0.0 as below:
Code:
<div id="siteinfoIP"><?php echo TEXT_YOUR_IP_ADDRESS . ' ' . 'server forwarded: ' .
$_SERVER['HTTP_X_FORWARDED_FOR'] . ' server client ip: '. $_SERVER['HTTP_CLIENT_IP'] . 'get
forwarded: ' . getenv('HTTP_X_FORWARDED_FOR') . 'get client ip: ' . getenv('HTTP_CLIENT_IP') .
'get remote addr: ' . getenv('REMOTE_ADDR') . 'zen ip func: ' . zen_get_ip_address(); ?></div>
and it returns below:
Your IP Address is: server forwarded: server client ip: get forwarded: get client ip: get remote addr: 0.0.0.0zen ip func: 0.0.0.0
Any other suggestions?
Bookmarks