Is there anyway in PHP to reliably get the server's IP address? I can't use $SERVER due to the fact that the script is also called directly, not via a web server - so $SERVER doesn't exist.
Is there a function or something to get it, because I can't seem to find one... ?
TIA
Regards
Steve.