--- title: "system.net.getIpAddress" description: "Returns the IP address of the computer the client is running on, as it appears to the client." --- # system.net.getIpAddress > Returns the IP address of the computer the client is running on, as it appears to the client. This function is used in **Python Scripting**. ## Description Returns the IP address of the computer that the script was ran on. When run in the Gateway scope, returns the Gateway IP address. When run in the Client scope, returns the Client IP address. ## Client Permission Restrictions This scripting function has no [Client Permission](../../../ignition-modules/vision/vision-project-properties/vision-project-properties.md#vision-permissions-properties) restrictions. ## Syntax `system.net.getIpAddress()` ### Parameters Nothing ### Returns String - Returns the IP address of the local machine, as it sees it. ### Scope Gateway, Vision Client, Perspective Session ## Code Examples ```python title="Code Snippet" # Put this script on a navigation button to link dedicated machines to specific screens. ip = system.net.getIpAddress() # check which line this client is tied to if ip == "10.1.10.5": system.nav.swapTo("Line Detail", {"line":1}) elif ip == "10.1.10.6": system.nav.swapTo("Line Detail", {"line":2}) else: system.nav.swapTo("Line Overview") ```