getRemoteIp Last updated: 04. Mar 2025

API only function

Use this to get the user's IP address from the current request.

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
};