I was trying to do something like this:
<?php
$ip = getenv("REMOTE_ADDR") ;
Echo "Your IP is " . $ip;
?>
which gave me a blank where the IP number should be. This morning I discovered that I can succesfully do this:
<?php
$ip=$_SERVER['REMOTE_ADDR'];
echo "Your IP is $ip";
?>
Which gets me through my problem, but I can't help wondering why I had a problem.