# Use Computer Name in Vision screen logic

**URL:** <https://forum.inductiveautomation.com/t/use-computer-name-in-vision-screen-logic/8232>\
**Category:** Ignition\
**Created:** [March 28, 2014, 5:54pm UTC](https://forum.inductiveautomation.com/t/use-computer-name-in-vision-screen-logic/8232 "2014-03-28T17:54:24Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![jimjohnson](https://avatars.discourse-cdn.com/v4/letter/j/898d66/32.png) [@jimjohnson](https://forum.inductiveautomation.com/u/jimjohnson)\
**Post date:** [March 28, 2014, 5:54pm UTC](https://forum.inductiveautomation.com/t/use-computer-name-in-vision-screen-logic/8232/1 "2014-03-28T17:54:24Z")

</div>

Is it possible to detect the name of the computer that is viewing the Vision screen and use that in the logic of what is displayed on the screen?

---

<div class="post-metadata">

**Author:** ![jpark](https://avatars.discourse-cdn.com/v4/letter/j/a88e57/32.png) [@jpark](https://forum.inductiveautomation.com/u/jpark)\
**Post date:** [March 28, 2014, 6:43pm UTC](https://forum.inductiveautomation.com/t/use-computer-name-in-vision-screen-logic/8232/2 "2014-03-28T18:43:16Z")

</div>

The name of the client is stored as a client tag in [Client]Network/Hostname

---

<div class="post-metadata">

**Author:** ![adamaustin](https://avatars.discourse-cdn.com/v4/letter/a/5f8ce5/32.png) [@adamaustin](https://forum.inductiveautomation.com/u/adamaustin)\
**Post date:** [March 28, 2014, 6:48pm UTC](https://forum.inductiveautomation.com/t/use-computer-name-in-vision-screen-logic/8232/3 "2014-03-28T18:48:05Z")

</div>

To get the name of the client’s computer, try [socket](http://stackoverflow.com/questions/4271740/how-can-i-use-python-to-get-the-system-hostname/4271755#4271755) in scripting:

```auto
import socket

print socket.gethostname()
```
