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: | Eric Oulashin |
|---|---|
| Location: | Beaverton, Oregon, USA |
| Users: | 123 |
| Nodes: | 16 (0 / 16) |
| Uptime: | 04:10:12 |
| Calls: | 7,861 |
| Calls today: | 6 |
| Files: | 9,395 |
| D/L today: |
322 files (77,036K bytes) |
| Messages: | 399,868 |
| Posted today: | 2 |