Docly Developers
Function API only Updated 17 Oct 2026

getRemoteIp()

Returns the visitor's IP address for the current request. When a WAF/proxy client-IP header is configured for the site's domain, the address is read from that header; if the header is missing, the connecting address is used.

See also flagActivity

Parameters

This function takes no parameters.

Returns

A string with the IP address, or null if it cannot be determined.

Example

Normal JavaScript, running in the browser or on the Docly™ server.
let ip = docly.getRemoteIp();
return {
    "IP" : ip
};