--- title: "system.net.getExternalIpAddress" description: "Returns the client's IP address, as it is detected by the Gateway." --- # system.net.getExternalIpAddress > Returns the client's IP address, as it is detected by the Gateway. This function is used in **Python Scripting**. ## Description Returns the client's IP address, as it is detected by the Gateway. This means that this call will communicate with the Gateway, and the Gateway will tell the client what IP address its incoming traffic is coming from. If you have a client behind a NAT router, then this address will be the WAN address of the router instead of the LAN address of the client, which is what you'd get with [system.net.getIpAddress](system-net-getIpAddress.md). ## Client Permission Restrictions This scripting function has no [Client Permission](projects\project-properties\project-properties.md#client---permissions) restrictions. ## Syntax `system.net.getExternalIpAddress()` ### Parameters None ### Returns **String** - A text representation of the client's IP address, as detected by the Gateway ### Scope Client ## Code Examples ```python title="Code Snippet" # Put this script on a navigation button to restrict users from opening a specific page. ip = system.net.getExternalIpAddress() # check if this matches the CEO's IP address if ip == "66.102.7.104": system.nav.swapTo("CEO Dashboard") else: system.nav.swapTo("Manager Dashboard") ```