# How to get the IP Address of a connected device in the gateway?

**URL:** <https://forum.inductiveautomation.com/t/how-to-get-the-ip-address-of-a-connected-device-in-the-gateway/114776>\
**Category:** Ignition\
**Tags:** perspective\
**Created:** [March 30, 2026, 4:50pm UTC](https://forum.inductiveautomation.com/t/how-to-get-the-ip-address-of-a-connected-device-in-the-gateway/114776 "2026-03-30T16:50:25Z")\
**Posts on this page:** 7\
**Page:** 1

<div class="post-metadata">

**Author:** ![raees.khan](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/raees.khan/32/76218_2.png) [@raees.khan](https://forum.inductiveautomation.com/u/raees.khan)\
**Post date:** [March 30, 2026, 4:50pm UTC](https://forum.inductiveautomation.com/t/how-to-get-the-ip-address-of-a-connected-device-in-the-gateway/114776/1 "2026-03-30T16:50:25Z")

</div>

Hi,

I need to display the IP address of a connected device (PLC) in perspective.  
What function or method is there to retrieve the IP Address?

I am using Ignition 8.1.48

Thank You

---

<div class="post-metadata">

**Author:** ![dillon](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/dillon/32/81537_2.png) [@dillon](https://forum.inductiveautomation.com/u/dillon)\
**Post date:** [March 30, 2026, 4:51pm UTC](https://forum.inductiveautomation.com/t/how-to-get-the-ip-address-of-a-connected-device-in-the-gateway/114776/2 "2026-03-30T16:51:49Z")

</div>

`session.props.address`  
[Session Properties | Ignition User Manual](https://docs.inductiveautomation.com/docs/8.1/ignition-modules/perspective/perspective-sessions/session-properties#session-properties-table)

---

<div class="post-metadata">

**Author:** ![raees.khan](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/raees.khan/32/76218_2.png) [@raees.khan](https://forum.inductiveautomation.com/u/raees.khan)\
**Post date:** [March 30, 2026, 4:54pm UTC](https://forum.inductiveautomation.com/t/how-to-get-the-ip-address-of-a-connected-device-in-the-gateway/114776/3 "2026-03-30T16:54:17Z")

</div>

I am looking for the IP address of a connected device, like a PLC, that is connected to the ignition gateway. I need to display this IP address in perspective.

---

<div class="post-metadata">

**Author:** ![Kevin.Herron](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/kevin.herron/32/7259_2.png) [@Kevin.Herron](https://forum.inductiveautomation.com/u/Kevin.Herron)\
**Post date:** [March 30, 2026, 4:55pm UTC](https://forum.inductiveautomation.com/t/how-to-get-the-ip-address-of-a-connected-device-in-the-gateway/114776/4 "2026-03-30T16:55:11Z")

</div>

Something like [system.device.getDeviceHostname | Ignition User Manual](https://docs.inductiveautomation.com/docs/8.3/appendix/scripting-functions/system-device/system-device-getDeviceHostname) for a device connection you have configured.

---

<div class="post-metadata">

**Author:** ![dillon](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/dillon/32/81537_2.png) [@dillon](https://forum.inductiveautomation.com/u/dillon)\
**Post date:** [March 30, 2026, 4:57pm UTC](https://forum.inductiveautomation.com/t/how-to-get-the-ip-address-of-a-connected-device-in-the-gateway/114776/5 "2026-03-30T16:57:28Z")

</div>

You had me in the first half

---

<div class="post-metadata">

**Author:** ![Dmitrii\_Lysenkov](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/dmitrii_lysenkov/32/53728_2.png) [@Dmitrii\_Lysenkov](https://forum.inductiveautomation.com/u/Dmitrii_Lysenkov)\
**Post date:** [March 30, 2026, 5:00pm UTC](https://forum.inductiveautomation.com/t/how-to-get-the-ip-address-of-a-connected-device-in-the-gateway/114776/6 "2026-03-30T17:00:19Z")

</div>

![image](https://us1.discourse-cdn.com/inductiveautomation/original/3X/4/5/45debdbdbbbdb6a89329b5f37277c37b6576130b.png)For AB you will see value in Diagnostic

---

<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:** [March 30, 2026, 6:19pm UTC](https://forum.inductiveautomation.com/t/how-to-get-the-ip-address-of-a-connected-device-in-the-gateway/114776/7 "2026-03-30T18:19:47Z")

</div>

7.9 era but here you go

> [@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…
