--- title: "system.net.getHostName" description: "Returns the host name of the computer that the client is currently running on" --- # system.net.getHostName > Returns the host name of the computer that the client is currently running on This function is used in **Python Scripting**. ## Description Returns the host name of the computer that the client is currently running on. On Windows, this is typically the "computer name". For example, might return EAST_WING_WORKSTATION or bobs-laptop. ## Client Permission Restrictions This scripting function has no [Client Permission](projects\project-properties\project-properties.md#client---permissions) restrictions. ## Syntax `system.net.getHostName()` ### Parameters None ### Returns **String** - The hostname of the local machine. This is the computer that the script is being executed on - may be a Client or the Gateway depending on the script context. ### Scope All ## Code Examples ```python title="Code Snippet" # Put this script on a navigation button to link dedicated machines to specific screens. comp = system.net.getHostName() # check which line this client is tied to if comp == "Line1Computer": system.nav.swapTo("Line Detail", {"line":1}) elif comp == "Line2Computer": system.nav.swapTo("Line Detail", {"line":2}) else: system.nav.swapTo("Line Overview") ```