--- title: "system.device.getDeviceHostname" description: "Returns the hostname of the device." --- # system.device.getDeviceHostname > Returns the hostname of the device. This function is used in Python Scripting. ## Description ## 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.device.getDeviceHostname()` ### Parameters Type | Parameter | Description ------- | ------- | ----- String| `deviceName` | The name of the device in Ignition. ### Returns The hostname of the device. The value will display null if the device doesn't have a hostname. ### Scope Gateway, Vision Client, Perspective Session ## Code Example ```python title="Code Snippet" # The following example displays the device hostname # for the device as entered in Ignition. print system.device.getDeviceHostname(deviceName) ```