Forum Moderators: coopster
$_SERVER['REMOTE_ADDR']. Echo it to your browser and see what you get :)
$_SERVER['HTTP_CLIENT_IP']
$_SERVER['HTTP_X_FORWARDED_FOR']
$_SERVER['HTTP_X_FORWARDED']
$_SERVER['HTTP_FORWARDED_FOR']
$_SERVER['HTTP_FORWARDED']
Using all of those I dont think I have ever not managed to collect an IP address...unfortunately sometimes you get more than 1 :(