# Identify computer to ignition

**URL:** <https://forum.inductiveautomation.com/t/identify-computer-to-ignition/2449>\
**Category:** Ignition\
**Created:** [December 22, 2010, 11:40pm UTC](https://forum.inductiveautomation.com/t/identify-computer-to-ignition/2449 "2010-12-22T23:40:11Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![jdana](https://avatars.discourse-cdn.com/v4/letter/j/c89c15/32.png) [@jdana](https://forum.inductiveautomation.com/u/jdana)\
**Post date:** [December 22, 2010, 11:40pm UTC](https://forum.inductiveautomation.com/t/identify-computer-to-ignition/2449/1 "2010-12-22T23:40:11Z")

</div>

I have an application where I need to identify to Ignition which computer the user is using. This is not based on user credentials, but actually which computer they are using. Control of certain things in the system we want to only happen from a specific location.

Ideally we would do this based on IP address (our control network uses static IP addresses). Our system will have access from a control network and also an office network and we’d like to keep anybody on the office network (which is mostly off-site) from doing things like opening valves or other control related functions even if that user would have permission to do these things when they were on site. Using IP address, we could block out the whole network very easily.

---

<div class="post-metadata">

**Author:** ![nathan](https://avatars.discourse-cdn.com/v4/letter/n/c5a1d2/32.png) [@nathan](https://forum.inductiveautomation.com/u/nathan)\
**Post date:** [December 23, 2010, 2:54am UTC](https://forum.inductiveautomation.com/t/identify-computer-to-ignition/2449/2 "2010-12-23T02:54:52Z")

</div>

You can either use scripting - see the [system.net](http://inductiveautomation.com/support/usermanuals/ignition/system_net_getipaddress.htm) library or client SQLTags.

---

<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:** [December 23, 2010, 1:30pm UTC](https://forum.inductiveautomation.com/t/identify-computer-to-ignition/2449/3 "2010-12-23T13:30:14Z")

</div>

Just to extend on that a little bit, I had a case where my clients were running on dual nic machines and I wanted to know all of the IP addresses. I ended up using the [java.net](http://java.net) library, and it worked pretty nicely. There are a bunch of other methods that give you even more info as needed. Here’s a quick cluge that gives you the ip and hostnames. :

```auto
import java.net as jn
e = jn.NetworkInterface.getNetworkInterfaces();
for i in e:
	j= i.getInetAddresses()
	for k in j:
		print ' *******************'
		print k.getHostAddress()
		print k.getHostName()
```
