September 4th, 2000, 09:10 AM
Is there a convenient variable for the server's IP? I was thinking of trying to have my wget crontab also post up a page that displays the server's (dynamic) IP, so I could access the box from school. Any thoughts? (PLEASE RESPOND if you know the answer, lol)
[This message has been edited by PhantomData (edited September 04, 2000).]
September 4th, 2000, 12:30 PM
September 4th, 2000, 01:32 PM
Try gethostbyname($SERVER_ADDR). This will return the IP of the given variable, which in this case is the server's address.
To alcohol! The cause of, and solution to, all of life's problems. -- Homer Simpson
September 4th, 2000, 05:33 PM
Those return the internal host ip. I wanted the external one that's associated with the dial-up adapter.
September 4th, 2000, 06:09 PM
In win32, run 'winipcfg'