IP address

aitchon
Posts: 119
Joined: Mon Jan 22, 2007 10:30 am

IP address

Post by aitchon »

Is there a sysinfo type of function to retrieve the IP address of the machine that a script is running from?
User avatar
mark
Site Admin
Posts: 5519
Joined: Tue Apr 25, 2000 6:56 pm

IP address

Post by mark »

Nothing direct. If it's running in a web context you could do an <nslookup> on $SERVER_NAME. If not web you could do an <nslookup> on <sysinfo hostname>.