# Get device Hostname in tag or scripting API

**URL:** <https://forum.inductiveautomation.com/t/get-device-hostname-in-tag-or-scripting-api/52819>\
**Category:** Ignition\
**Created:** [November 8, 2021, 6:12am UTC](https://forum.inductiveautomation.com/t/get-device-hostname-in-tag-or-scripting-api/52819 "2021-11-08T06:12:48Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![hayden](https://avatars.discourse-cdn.com/v4/letter/h/91b2a8/32.png) [@hayden](https://forum.inductiveautomation.com/u/hayden)\
**Post date:** [November 8, 2021, 6:12am UTC](https://forum.inductiveautomation.com/t/get-device-hostname-in-tag-or-scripting-api/52819/1 "2021-11-08T06:12:48Z")

</div>

I need to read the devices IP addresses in a diagnostics mimic, is there any way to get the IP as a tag or through scripting?

---

<div class="post-metadata">

**Author:** ![nminchin](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/nminchin/32/6911_2.png) [@nminchin](https://forum.inductiveautomation.com/u/nminchin)\
**Post date:** [November 8, 2021, 7:13am UTC](https://forum.inductiveautomation.com/t/get-device-hostname-in-tag-or-scripting-api/52819/2 "2021-11-08T07:13:34Z")

</div>

These are exposed as tags in the OPC UA server for each device under the diagnostics folder

---

<div class="post-metadata">

**Author:** ![hayden](https://avatars.discourse-cdn.com/v4/letter/h/91b2a8/32.png) [@hayden](https://forum.inductiveautomation.com/u/hayden)\
**Post date:** [November 8, 2021, 7:41am UTC](https://forum.inductiveautomation.com/t/get-device-hostname-in-tag-or-scripting-api/52819/4 "2021-11-08T07:41:09Z")

</div>

Hey,  
I should have been more specific. I can’t find this exposed tag on a DNP3 device.

Thanks!
