Module function reference

get_remote_ip_address

A reference entry for get_remote_ip_address

Module function · Network

get_remote_ip_address() ⇒ string|boolean

Returns the public IP address reported by an external service, or false when it cannot be obtained.

Example

YASS
$address = Network::get_remote_ip_address()
print($address)

Notes