$_SERVER['REMOTE_ADDR'] (case sensitive) gives you the address of the client. This is not the IP address of the user; users don't have IP addresses.
The IP address may belong to the user's machine, or a shared machine (in the case of a multiuser environment), a proxy, a NAT firewall, or something else.
Mark