# Accessing Gateway IP

**URL:** <https://forum.inductiveautomation.com/t/accessing-gateway-ip/100892>\
**Category:** Ignition\
**Tags:** vision\
**Created:** [January 14, 2025, 8:57pm UTC](https://forum.inductiveautomation.com/t/accessing-gateway-ip/100892 "2025-01-14T20:57:43Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![Leo\_Hobbs](https://avatars.discourse-cdn.com/v4/letter/l/a88e4f/32.png) [@Leo\_Hobbs](https://forum.inductiveautomation.com/u/Leo_Hobbs)\
**Post date:** [January 14, 2025, 8:57pm UTC](https://forum.inductiveautomation.com/t/accessing-gateway-ip/100892/1 "2025-01-14T20:57:43Z")

</div>

Hello folks!

I have been trying to create a label inside of a vision window which references a tag storing the Gateway IP. This has given me a lot of trouble, and I can't quite seem to figure out how to approach this problem. Can anyone give me some insight on this?

If you need further clarification, then let me know!

---

<div class="post-metadata">

**Author:** ![pturmel](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/pturmel/32/3295_2.png) [@pturmel](https://forum.inductiveautomation.com/u/pturmel)\
**Post date:** [January 14, 2025, 9:01pm UTC](https://forum.inductiveautomation.com/t/accessing-gateway-ip/100892/2 "2025-01-14T21:01:25Z")

</div>

Since gateways can and usually do have multiple IPs, Vision only exposes the host name that it is currently using in the `[System]` tag provider. If a host name (typical if using SSL), you will need to resolve it yourself.

---

<div class="post-metadata">

**Author:** ![Transistor](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/transistor/32/3380_2.png) [@Transistor](https://forum.inductiveautomation.com/u/Transistor)\
**Post date:** [January 14, 2025, 9:03pm UTC](https://forum.inductiveautomation.com/t/accessing-gateway-ip/100892/3 "2025-01-14T21:03:01Z")

</div>

Have a look at [system.util.getGatewayAddress | Ignition User Manual](https://www.docs.inductiveautomation.com/docs/8.1/appendix/scripting-functions/system-util/system-util-getGatewayAddress) and see if that does what you need.

---

<div class="post-metadata">

**Author:** ![pturmel](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/pturmel/32/3295_2.png) [@pturmel](https://forum.inductiveautomation.com/u/pturmel)\
**Post date:** [January 14, 2025, 9:15pm UTC](https://forum.inductiveautomation.com/t/accessing-gateway-ip/100892/4 "2025-01-14T21:15:52Z")

</div>

> [@Transistor](#):
>
> [system.util.getGatewayAddress](https://www.docs.inductiveautomation.com/docs/8.1/appendix/scripting-functions/system-util/system-util-getGatewayAddress)

That is the same value as you get from binding `[System]Client/Network/GatewayAddress`. No scripting for the tag binding, and you get automatic updates to the label.
