# system.device.getDeviceHostname?

**URL:** <https://forum.inductiveautomation.com/t/system-device-getdevicehostname/12460>\
**Category:** Ignition\
**Created:** [December 12, 2016, 11:09pm UTC](https://forum.inductiveautomation.com/t/system-device-getdevicehostname/12460 "2016-12-12T23:09:53Z")\
**Posts on this page:** 1\
**Showing post:** 2

<div class="post-metadata">

**Author:** ![greg.simpson](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/greg.simpson/32/3135_2.png) [@greg.simpson](https://forum.inductiveautomation.com/u/greg.simpson)\
**Post date:** [December 13, 2016, 12:41am UTC](https://forum.inductiveautomation.com/t/system-device-getdevicehostname/12460/2 "2016-12-13T00:41:58Z")

</div>

If you browse to your device with the OPC Browser you will see that it contains a Diagnostics folder. Within the Diagnostics folder is a tag that contains the hostname. You can drag this tag into the Tag Browser and then read the value in your script with the system.tag.read() function.

---

_[View the full topic](https://forum.inductiveautomation.com/t/system-device-getdevicehostname/12460)._
