# Client IPs

**URL:** <https://forum.inductiveautomation.com/t/client-ips/2021>\
**Category:** Ignition\
**Created:** [July 9, 2010, 3:55pm UTC](https://forum.inductiveautomation.com/t/client-ips/2021 "2010-07-09T15:55:07Z")\
**Posts on this page:** 13\
**Page:** 1

<div class="post-metadata">

**Author:** ![Step7](https://avatars.discourse-cdn.com/v4/letter/s/45deac/32.png) [@Step7](https://forum.inductiveautomation.com/u/Step7)\
**Post date:** [July 9, 2010, 3:55pm UTC](https://forum.inductiveautomation.com/t/client-ips/2021/1 "2010-07-09T15:55:07Z")

</div>

Do I have access to the IP addresses of any client that is currently running on the network somewhere, i.e. the clients that show up on the gateway status page? I am creating a network status screen for my other devices, and thought I’d include the clients too. I know I could have each client set a value in the database when it’s launched, but if the information is already there somewhere, I’d use that instead.

---

<div class="post-metadata">

**Author:** ![ttuttle387](https://avatars.discourse-cdn.com/v4/letter/t/59ef9b/32.png) [@ttuttle387](https://forum.inductiveautomation.com/u/ttuttle387)\
**Post date:** [July 9, 2010, 7:01pm UTC](https://forum.inductiveautomation.com/t/client-ips/2021/2 "2010-07-09T19:01:48Z")

</div>

You can use `system.util.getSessionInfo`

Check out the [user manual](http://www.inductiveautomation.com/support/usermanuals/ignition/index.html?system_util_getsessioninfo.htm). The sample code there works great to display all users and IP address, projects running ect.

---

<div class="post-metadata">

**Author:** ![Step7](https://avatars.discourse-cdn.com/v4/letter/s/45deac/32.png) [@Step7](https://forum.inductiveautomation.com/u/Step7)\
**Post date:** [July 10, 2010, 2:03pm UTC](https://forum.inductiveautomation.com/t/client-ips/2021/3 "2010-07-10T14:03:16Z")

</div>

Outstanding! I knew it had to be there somewhere. Thanks for the tip.

---

<div class="post-metadata">

**Author:** ![Step7](https://avatars.discourse-cdn.com/v4/letter/s/45deac/32.png) [@Step7](https://forum.inductiveautomation.com/u/Step7)\
**Post date:** [July 12, 2010, 10:23pm UTC](https://forum.inductiveautomation.com/t/client-ips/2021/4 "2010-07-12T22:23:37Z")

</div>

Ok, I’m seeing something odd. I have four different client apps running from the gateway (three are on the gateway PC, and I have another client app running on three other client PCs). Let’s say Projects A, B and C are running on the gateway PC, and Project D is running on the client PCs, for a total of six client apps. The getSessionInfo code is being called from Project A, and the results are stored in a table.

But when I call getSessionInfo, it returns a list of all of the individual clients as it should, they each have a unique ClientID, and the IP addresses are correct, but the project name is the same for all of them (Project A). I could swear that it returned the actual project names when I tested this the other day, but all I’m seeing now is Project A for everything. I tried stripping out the code that stores it in a table in the database and instead pass the results directly to a table on the screen, but I get the same results. Shouldn’t I get the actual project names in this result set?

---

<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:** [July 15, 2010, 11:46pm UTC](https://forum.inductiveautomation.com/t/client-ips/2021/5 "2010-07-15T23:46:31Z")

</div>

You’re right, this was a bug in getSessionInfo. It has been fixed for 7.1.4.

---

<div class="post-metadata">

**Author:** ![Step7](https://avatars.discourse-cdn.com/v4/letter/s/45deac/32.png) [@Step7](https://forum.inductiveautomation.com/u/Step7)\
**Post date:** [July 16, 2010, 12:35pm UTC](https://forum.inductiveautomation.com/t/client-ips/2021/6 "2010-07-16T12:35:41Z")

</div>

As long as you are making a change anyway, would it be a big deal to include the running time of the session as well? It is dislayed on the gateway status screen, so I assumed it was available.

---

<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:** [July 16, 2010, 6:10pm UTC](https://forum.inductiveautomation.com/t/client-ips/2021/7 "2010-07-16T18:10:02Z")

</div>

How would you want this returned, a Date representing the creation time of the session (e.g. 2010-07-03 08:23:44), or a String representing the running time (e.g. “5 hours, 3 minutes”) ?

---

<div class="post-metadata">

**Author:** ![Step7](https://avatars.discourse-cdn.com/v4/letter/s/45deac/32.png) [@Step7](https://forum.inductiveautomation.com/u/Step7)\
**Post date:** [July 16, 2010, 6:30pm UTC](https://forum.inductiveautomation.com/t/client-ips/2021/8 "2010-07-16T18:30:55Z")

</div>

I think the creation time would be the best. I can key off that to display other values.

---

<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:** [July 16, 2010, 8:40pm UTC](https://forum.inductiveautomation.com/t/client-ips/2021/9 "2010-07-16T20:40:36Z")

</div>

Agreed.

---

<div class="post-metadata">

**Author:** ![phyatt](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/phyatt/32/19545_2.png) [@phyatt](https://forum.inductiveautomation.com/u/phyatt)\
**Post date:** [March 20, 2017, 7:52pm UTC](https://forum.inductiveautomation.com/t/client-ips/2021/10 "2017-03-20T19:52:39Z")

</div>

Has the IP address been removed from system.util.getSessionInfo()?

In 7.9 I am seeing a host name but not an IP address in the address column. Is there another function to return IP addresses for all connected clients?

---

<div class="post-metadata">

**Author:** ![Caleb\_Bohon](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/caleb_bohon/32/3293_2.png) [@Caleb\_Bohon](https://forum.inductiveautomation.com/u/Caleb_Bohon)\
**Post date:** [March 23, 2017, 12:06am UTC](https://forum.inductiveautomation.com/t/client-ips/2021/11 "2017-03-23T00:06:03Z")

</div>

The IP address is still listed in the documentation, and I don’t think Inductive usually removes functionality, so I would guess the info is still there.

You could try using system.net.getIpAddress

See the Scripting Function list in the Docs:

[docs.inductiveautomation.com/di … +Functions](https://docs.inductiveautomation.com/display/DOC79/Scripting+Functions)

---

<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:** [March 24, 2017, 3:48pm UTC](https://forum.inductiveautomation.com/t/client-ips/2021/12 "2017-03-24T15:48:51Z")

</div>

Where you you see this?

> [@](#):
>
> The IP address is still listed in the documentation

All I see in the [documentation](https://docs.inductiveautomation.com/display/DOC79/system.util.getSessionInfo) is the "address" which is usually the hostname. Nothing has changed with regards to this method.

---

<div class="post-metadata">

**Author:** ![Caleb\_Bohon](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/caleb_bohon/32/3293_2.png) [@Caleb\_Bohon](https://forum.inductiveautomation.com/u/Caleb_Bohon)\
**Post date:** [March 25, 2017, 9:06pm UTC](https://forum.inductiveautomation.com/t/client-ips/2021/13 "2017-03-25T21:06:45Z")

</div>

hm. That is what it says. “Address” not “IP Address.” However the documentation doesn’t clarify that “Address” is usually a hostname. That seems a little confusing, especially when earlier in this thread Step7 was saying that he got IPs from the function.

Thanks for teaching me something.
