How can I retrieve the IP address of the machine that I'm running a Vortex script from? I tried using $SERVER_NAME but that returns nothing.
get ip
-
Kai
- Site Admin
- Posts: 1272
- Joined: Tue Apr 25, 2000 1:27 pm
get ip
No. These variables are set by the web server for the CGI environment, when Vortex runs from a web server. To get the local IP address of the machine while running from the command-line would require platform-specific calls unavailable in Vortex. Under Unix, you might be able to <EXEC> the "hostname" command, then use <nslookup> to resolve that name.