PHP
UNSET ($ onlineIP);
if ($ _ SERVER [ 'HTTP_CLIENT_IP']) {$ onlineip = $ _ SERVER [ 'HTTP_CLIENT_IP'];} elseif ($ _ SERVER [ 'HTTP_X_FORWARDED_FOR']) {$ onlineip = $ _ SERVER [ 'HTTP_X_FORWARDED_FOR'];} else {$ onlineip = $ _ Server ['Remote_Addr'];
Echo $ onlineIP;
?>