# Multi instance of the same project

**URL:** <https://forum.inductiveautomation.com/t/multi-instance-of-the-same-project/9219>\
**Category:** Ignition\
**Created:** [October 24, 2014, 8:28am UTC](https://forum.inductiveautomation.com/t/multi-instance-of-the-same-project/9219 "2014-10-24T08:28:01Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![Kamal\_Lang](https://avatars.discourse-cdn.com/v4/letter/k/45deac/32.png) [@Kamal\_Lang](https://forum.inductiveautomation.com/u/Kamal_Lang)\
**Post date:** [October 24, 2014, 8:28am UTC](https://forum.inductiveautomation.com/t/multi-instance-of-the-same-project/9219/1 "2014-10-24T08:28:01Z")

</div>

I have a situation were the operator accidentaly launches several instances of the same project on the same client at the same time. It occurs as the launched window gets hidden behind other windows. Is there a way to prevent this from happening by, for example, redirecting to the already launched project.  
Is it possible by any means to set the lauched project window to be always on top.

Thanks.

OS: Windows 7  
Ignition 7.2.5 (b76)

---

<div class="post-metadata">

**Author:** ![Duffanator](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/duffanator/32/3560_2.png) [@Duffanator](https://forum.inductiveautomation.com/u/Duffanator)\
**Post date:** [October 29, 2014, 7:48pm UTC](https://forum.inductiveautomation.com/t/multi-instance-of-the-same-project/9219/2 "2014-10-29T19:48:25Z")

</div>

I put the following code into my client startup script as I had the same problems. This asks nicely if the user would really like to keep more than one client open at a time but you could change it to force close if you so desired.

[code]# Check to see if there is already an Ignition client open on this PC. Trying to cut down on multiple clients open on one machine.  
projName = system.util.getProjectName()  
hostName = system.tag.read("[System]Client/Network/Hostname").value  
sessionInfo = system.util.getSessionInfo()

rowIndex = 0  
clientCount = 0  
for row in sessionInfo:  
if sessionInfo[rowIndex][1] == projName and sessionInfo[rowIndex][2] == hostName:  
clientCount += 1  
if clientCount \> 1:  
if system.gui.confirm(“There is already a client open on this PC, do you want to close this client?”, “Client Already Running”):  
system.util.exit()  
break  
rowIndex += 1[/code]

---

<div class="post-metadata">

**Author:** ![Duffanator](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/duffanator/32/3560_2.png) [@Duffanator](https://forum.inductiveautomation.com/u/Duffanator)\
**Post date:** [October 30, 2014, 1:55pm UTC](https://forum.inductiveautomation.com/t/multi-instance-of-the-same-project/9219/3 "2014-10-30T13:55:13Z")

</div>

I just noticed that you’re running Ignition 7.2.

I think the getSessionInfo() function returned IP addresses prior to 7.7 so you’ll have to use the IPAddress tag instead of the Hostname tag, if I remember correctly. FYI.
