Thank you for your responses, but they didn't work.
I checked my phpinfo file from my client machine and _SERVER["REMOTE_ADDR"] has the servers IP address as its value. I don't know if that's what it SHOULD have or not.
Is there something else that might work, or suggestions for finding out why the code that SHOULD work is not?
Thank you