I wouldn't reccomend tracking by IP addresses but rather cookies. (Dynamic IPs for one reason...)
However, just to elucidate you, the user's IP address is found in the $_SERVER or $HTTP_SERVER_VARS array (the latter is deprecated as of PHP 4.1.0, when the former is first available) under the key REMOTE_ADDR. $REMOTE_ADDR will work with register_globals set, though this is not particularly recommended, and as of PHP 5.0.0, $HTTP_SERVER_VARS will not work if register_long_arrays is set to false.
See:
http://us4.php.net/manual/en/reserved.vari...ariables.server