# Getting IP address of connected machine

**URL:** <https://forum.inductiveautomation.com/t/getting-ip-address-of-connected-machine/6976>\
**Category:** Ignition\
**Created:** [August 2, 2013, 2:51pm UTC](https://forum.inductiveautomation.com/t/getting-ip-address-of-connected-machine/6976 "2013-08-02T14:51:38Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![mlangdon](https://avatars.discourse-cdn.com/v4/letter/m/d9b06d/32.png) [@mlangdon](https://forum.inductiveautomation.com/u/mlangdon)\
**Post date:** [August 2, 2013, 2:51pm UTC](https://forum.inductiveautomation.com/t/getting-ip-address-of-connected-machine/6976/1 "2013-08-02T14:51:38Z")

</div>

I’m trying to get the IP address of the machine viewing a web app. I expected this bit of python in the Client startup script to do it:

```auto
system.tag.write('[Client]writable', system.net.getIpAddress(), True)
```

Instead, it gets the IP address of the server/gateway.

I also tried to access it through `[System]Client/Network/IPAddress` to the same effect.

So, how do I do this?

Edit:

I should add that this is a mobile app, which I think might be part of the issue.

---

<div class="post-metadata">

**Author:** ![mlangdon](https://avatars.discourse-cdn.com/v4/letter/m/d9b06d/32.png) [@mlangdon](https://forum.inductiveautomation.com/u/mlangdon)\
**Post date:** [August 2, 2013, 3:08pm UTC](https://forum.inductiveautomation.com/t/getting-ip-address-of-connected-machine/6976/2 "2013-08-02T15:08:35Z")

</div>

From the guide: [quote]Mobile clients are virtual clients that are launched on the server.[/quote]

So I guess my question is, is there a workaround to still access the ip?

---

<div class="post-metadata">

**Author:** ![mlangdon](https://avatars.discourse-cdn.com/v4/letter/m/d9b06d/32.png) [@mlangdon](https://forum.inductiveautomation.com/u/mlangdon)\
**Post date:** [August 8, 2013, 5:59pm UTC](https://forum.inductiveautomation.com/t/getting-ip-address-of-connected-machine/6976/3 "2013-08-08T17:59:57Z")

</div>

To take another tack, is there any way to embed the client id in the meta data of a mobile module web app?

---

<div class="post-metadata">

**Author:** ![mlangdon](https://avatars.discourse-cdn.com/v4/letter/m/d9b06d/32.png) [@mlangdon](https://forum.inductiveautomation.com/u/mlangdon)\
**Post date:** [August 11, 2013, 3:52pm UTC](https://forum.inductiveautomation.com/t/getting-ip-address-of-connected-machine/6976/4 "2013-08-11T15:52:57Z")

</div>

Okay, one more try, is it possible to bake a string into the URL on a per-client basis?

---

<div class="post-metadata">

**Author:** ![pdibenedetto](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/pdibenedetto/32/6364_2.png) [@pdibenedetto](https://forum.inductiveautomation.com/u/pdibenedetto)\
**Post date:** [August 12, 2013, 1:37pm UTC](https://forum.inductiveautomation.com/t/getting-ip-address-of-connected-machine/6976/5 "2013-08-12T13:37:34Z")

</div>

Take a look at [this](http://www.inductiveautomation.com/forum/viewtopic.php?f=71&t=10041).

Regards,

---

<div class="post-metadata">

**Author:** ![mlangdon](https://avatars.discourse-cdn.com/v4/letter/m/d9b06d/32.png) [@mlangdon](https://forum.inductiveautomation.com/u/mlangdon)\
**Post date:** [August 13, 2013, 6:11pm UTC](https://forum.inductiveautomation.com/t/getting-ip-address-of-connected-machine/6976/6 "2013-08-13T18:11:18Z")

</div>

Thanks pdibenedetto!

For posterity:

Use a URL e.g., localhost:8088/main/system/mobile?project=myProjectName&someParam=foo

“myProjectName” is the name from “myProjectName.jnlp” and “someParam” is a client tag in designer like “[Client]someParam”.

You must upgrade your Gateway to 7.6.3\* for this to work (and Java to 7).
