In the /web/root/index.ssjs I would like to grab the connecting user's IP
address and pass it along to a system.open("script ip_add") as an argv but
Re: Getting IP Address
By: Mortifis to All on Mon Jan 21 2019 15:45:03
In the /web/root/index.ssjs I would like to grab the connecting user's IP
You can get it from http_request.remote_ip or client.ip_address, and these probably have the same value.
address and pass it along to a system.open("script ip_add") as an argv but
system.exec('/path/to/script ' + http_request.remote_ip);
Sysop: | digital man |
---|---|
Location: | Riverside County, California |
Users: | 1,036 |
Nodes: | 17 (1 / 16) |
Uptime: | 51:02:41 |
Calls: | 503,801 |
Calls today: | 13 |
Files: | 158,244 |
D/L today: |
3,167 files (330M bytes) |
Messages: | 444,571 |
Posted today: | 4 |