# Can you pull info On gateway-\>connected devices?

**URL:** <https://forum.inductiveautomation.com/t/can-you-pull-info-on-gateway-connected-devices/112764>\
**Category:** Ignition\
**Created:** [December 11, 2025, 4:52pm UTC](https://forum.inductiveautomation.com/t/can-you-pull-info-on-gateway-connected-devices/112764 "2025-12-11T16:52:56Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![Eugene49](https://avatars.discourse-cdn.com/v4/letter/e/c6cbf5/32.png) [@Eugene49](https://forum.inductiveautomation.com/u/Eugene49)\
**Post date:** [December 11, 2025, 4:52pm UTC](https://forum.inductiveautomation.com/t/can-you-pull-info-on-gateway-connected-devices/112764/1 "2025-12-11T16:52:56Z")

</div>

Is there a way to programmatically pull list of devices and their IP Addresses connected to gateway?

 ![image](https://us1.discourse-cdn.com/inductiveautomation/original/3X/4/0/40024ccc9a0c77f2bafc97b33f706fffc40fd608.png)

---

<div class="post-metadata">

**Author:** ![ryan.white](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/ryan.white/32/73193_2.png) [@ryan.white](https://forum.inductiveautomation.com/u/ryan.white)\
**Post date:** [December 11, 2025, 4:56pm UTC](https://forum.inductiveautomation.com/t/can-you-pull-info-on-gateway-connected-devices/112764/2 "2025-12-11T16:56:22Z")

</div>

You might need to use [`system.device.listDevices`](https://www.docs.inductiveautomation.com/docs/8.1/appendix/scripting-functions/system-device/system-device-listDevices) in conjunction with [`system.device.getDeviceHostname`.](https://www.docs.inductiveautomation.com/docs/8.1/appendix/scripting-functions/system-device/system-device-getDeviceHostname)

---

<div class="post-metadata">

**Author:** ![Eugene49](https://avatars.discourse-cdn.com/v4/letter/e/c6cbf5/32.png) [@Eugene49](https://forum.inductiveautomation.com/u/Eugene49)\
**Post date:** [December 11, 2025, 5:00pm UTC](https://forum.inductiveautomation.com/t/can-you-pull-info-on-gateway-connected-devices/112764/3 "2025-12-11T17:00:29Z")

</div>

I will try this and get back.

---

<div class="post-metadata">

**Author:** ![Matrix\_Engineering](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/matrix_engineering/32/19781_2.png) [@Matrix\_Engineering](https://forum.inductiveautomation.com/u/Matrix_Engineering)\
**Post date:** [December 11, 2025, 5:41pm UTC](https://forum.inductiveautomation.com/t/can-you-pull-info-on-gateway-connected-devices/112764/4 "2025-12-11T17:41:46Z")

</div>

The below code works for me in 8.1, I haven’t tried it in 8.3 yet. Note it was written in 7.9 era, so some functions may now be deprecated.

> [@Alarming Loss of Comms to Devices](https://forum.inductiveautomation.com/t/alarming-loss-of-comms-to-devices/52858/2):
>
> Welcome, Craig! You will find with Ignition there is no ‘one-way’ of doing things, there are multiple ways this can be done. This is how I do it, note the version is 7.9 so scripts will need slight updates for best performance on 8.1.x You seem to be concerned with loss to a single device, the following is for an overview of all devices but it might give you some ideas. I have a tag that counts the total number of connected devices: import system cDS = system.dataset.toPyDataSet(deviceDa…
