Hi,
The $REMOTE_ADDR is an Apache specific thing, the documentation says that it may work under other web servers, but also may not return the desired results.
Also, and someone can correct me if I'm wrong, but in order for PHP to access Apache envoinrment variables, it will probably have to be configured as an Apache module, not statically. This little script will tell you most everything you need to know about your php enviornment. Just don't leave it up when you don't need it, it's a big security hole:
<?
phpInfo()
?>
Brad.