# Need the name for remote gateway on network

**URL:** <https://forum.inductiveautomation.com/t/need-the-name-for-remote-gateway-on-network/14952>\
**Category:** General Discussion\
**Created:** [August 1, 2017, 3:30pm UTC](https://forum.inductiveautomation.com/t/need-the-name-for-remote-gateway-on-network/14952 "2017-08-01T15:30:34Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![weertske](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/weertske/32/3353_2.png) [@weertske](https://forum.inductiveautomation.com/u/weertske)\
**Post date:** [August 1, 2017, 3:30pm UTC](https://forum.inductiveautomation.com/t/need-the-name-for-remote-gateway-on-network/14952/1 "2017-08-01T15:30:34Z")

</div>

When you set up remote realtime tag providers, you name them and that is how they show up under “All Providers”. I wanted to use system.net.getRemoteServers to pull that name but instead it gives me the network id which is different. How do I get the name? I am using that name with system.tag.browseTags to pull underlying tag structure.

---

<div class="post-metadata">

**Author:** ![mgross](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/mgross/32/3311_2.png) [@mgross](https://forum.inductiveautomation.com/u/mgross)\
**Post date:** [August 1, 2017, 9:07pm UTC](https://forum.inductiveautomation.com/t/need-the-name-for-remote-gateway-on-network/14952/2 "2017-08-01T21:07:33Z")

</div>

Do you just need the remote gateway name? It’s in the network id, it just has some other stuff before the name. For example, ‘\_0:0:agent-ide-8088’ does reference a remote gateway named ‘agent-ide-8088’. You can use this script to extract the gateway name from the id returned from system.net.getRemoteServers()

```auto
servers= system.net.getRemoteServers(True)
serverNames = []
for server in servers:
	serverNames.append(server[5:])
	
print serverNames[0]
```

---

<div class="post-metadata">

**Author:** ![weertske](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/weertske/32/3353_2.png) [@weertske](https://forum.inductiveautomation.com/u/weertske)\
**Post date:** [August 1, 2017, 9:30pm UTC](https://forum.inductiveautomation.com/t/need-the-name-for-remote-gateway-on-network/14952/3 "2017-08-01T21:30:20Z")

</div>

No, that part is easy.

When you set up a remote realtime tag provider, it asks for a name (which can be different from the id). That name is then assigned under “All Providers”. I want to use system.tag.browseTags so I need that name to create the path to the folder structure.

---

<div class="post-metadata">

**Author:** ![mgross](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/mgross/32/3311_2.png) [@mgross](https://forum.inductiveautomation.com/u/mgross)\
**Post date:** [August 1, 2017, 10:48pm UTC](https://forum.inductiveautomation.com/t/need-the-name-for-remote-gateway-on-network/14952/4 "2017-08-01T22:48:47Z")

</div>

Ah, so it’s the actual remote provider name that you need. Unfortunately, there isn’t any existing way to get provider names from scripting. If you wanted to access the actual provider names, you would have to implement a module in Java.

---

<div class="post-metadata">

**Author:** ![weertske](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/weertske/32/3353_2.png) [@weertske](https://forum.inductiveautomation.com/u/weertske)\
**Post date:** [August 2, 2017, 4:47am UTC](https://forum.inductiveautomation.com/t/need-the-name-for-remote-gateway-on-network/14952/5 "2017-08-02T04:47:48Z")

</div>

Exactly. Without that name to set up the path, system.tag.browseTags is not as functional as it is for normal applications. I guess I will need to request a feature.
