# \[Feature-12840\] system.util.getGatewayAddress Should Be Scoped For Perspective

**URL:** <https://forum.inductiveautomation.com/t/feature-12840-system-util-getgatewayaddress-should-be-scoped-for-perspective/22768>\
**Category:** Ignition Early Access\
**Created:** [February 21, 2019, 4:03pm UTC](https://forum.inductiveautomation.com/t/feature-12840-system-util-getgatewayaddress-should-be-scoped-for-perspective/22768 "2019-02-21T16:03:43Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![andrea.morando](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/andrea.morando/32/8039_2.png) [@andrea.morando](https://forum.inductiveautomation.com/u/andrea.morando)\
**Post date:** [February 21, 2019, 4:03pm UTC](https://forum.inductiveautomation.com/t/feature-12840-system-util-getgatewayaddress-should-be-scoped-for-perspective/22768/1 "2019-02-21T16:03:43Z")

</div>

Thank you for you clear explanation.  
Just a further help: how can I know the \<gateway\_ip\> and the \<gateway\_port\> values via scripting?

---

<div class="post-metadata">

**Author:** ![cmallonee](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/cmallonee/32/6416_2.png) [@cmallonee](https://forum.inductiveautomation.com/u/cmallonee)\
**Post date:** [February 21, 2019, 4:25pm UTC](https://forum.inductiveautomation.com/t/feature-12840-system-util-getgatewayaddress-should-be-scoped-for-perspective/22768/2 "2019-02-21T16:25:56Z")

</div>

In Perspective there is not currently an avenue for directly obtaining the Gateway’s IP. Long-term, the IP and port will either be a Session property or will be accessible via system.util.getGatewayAddress() (which returns both in one String, but is currently limited to Vision Clients).

As a workaround, you can make a Session Custom property and specify the IP:port combo, although this will of course be brittle should you migrate, failover, load-balance, or use DNS.

---

<div class="post-metadata">

**Author:** ![Carl.Gould](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/carl.gould/32/7262_2.png) [@Carl.Gould](https://forum.inductiveautomation.com/u/Carl.Gould)\
**Post date:** [November 8, 2021, 7:25pm UTC](https://forum.inductiveautomation.com/t/feature-12840-system-util-getgatewayaddress-should-be-scoped-for-perspective/22768/3 "2021-11-08T19:25:40Z")

</div>

We decided not to do this since the alternative method is already present and sufficient.
