# Accessing Gateway Address

**URL:** <https://forum.inductiveautomation.com/t/accessing-gateway-address/74514>\
**Category:** Module Development\
**Created:** [June 2, 2023, 10:27pm UTC](https://forum.inductiveautomation.com/t/accessing-gateway-address/74514 "2023-06-02T22:27:48Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![nicholas.robinson](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/nicholas.robinson/32/22188_2.png) [@nicholas.robinson](https://forum.inductiveautomation.com/u/nicholas.robinson)\
**Post date:** [June 2, 2023, 10:27pm UTC](https://forum.inductiveautomation.com/t/accessing-gateway-address/74514/1 "2023-06-02T22:27:48Z")

</div>

This is probably an overly simple question, but where in the SDK can we access the equivalent of:

[System]Client/Network/GatewayAddress

?

I had a look at `GatewayContect.getSystemProperties().getHomepageUrl()` but that is not it.

Thanks,

Nick

EDIT:

The reason I'm trying to get it is so that when we do SSL certificate creation systematically, we can do the equivalent of filling in this field:

 ![image](https://us1.discourse-cdn.com/inductiveautomation/original/3X/3/8/3853eddf3f042d8ef77ed0b442496aff8f6064c9.png)

---

<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:** [June 2, 2023, 11:16pm UTC](https://forum.inductiveautomation.com/t/accessing-gateway-address/74514/2 "2023-06-02T23:16:05Z")

</div>

So, this would be relevant from a Vision Client scope only. If that fits your need, there're some classes that manage the gateway connection that should have that.

{ Sorry. Vague recollections on a Friday... }

---

<div class="post-metadata">

**Author:** ![jspecht](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/jspecht/32/6465_2.png) [@jspecht](https://forum.inductiveautomation.com/u/jspecht)\
**Post date:** [June 2, 2023, 11:16pm UTC](https://forum.inductiveautomation.com/t/accessing-gateway-address/74514/3 "2023-06-02T23:16:56Z")

</div>

If you are working from the Gateway scope, then in general, there is no API that can give you the values for which DNS names / IP Addresses need to be populated on your Gateway Certificate or CSR's Subject Common Name / Subject Alternative Names. These values ultimately need to come from you. What are the DNS names / IP addresses that you will expect any valid client in your network to use to connect to your Gateway? That's highly dependent on your environment and might not be possible to query using standard Java APIs, depending on your network architecture.
