getRemoteIp Last updated: 01. May 2026
API only function
Use this to get the user's IP address from the current request.
See also: flagActivity
Parameters
This function takes no parameters
Returns
A string with IP address for remote host.
Example
Code example (JS)
JS is normal JavaScript either running in the browser or on the Docly™ server.let ip = docly.getRemoteIp();
return {
"IP" : ip
};