TC.getUserIP

Returns the IP address when IP spoofing is enabled, and the script is running in load mode in Controller.

TC.getUserIP();

Arguments

None

Return value

A promise that is fulfilled with a string, which is the IP address.

Example

Copy code
(async ()=>{
    let ip = await TC.getUserIP();
})();