Get number of computers that are using the networked system

0

I am developing software and the client can only use the system on a certain amount of computers at a time. I would like to know how I get the number of machines that have the system open every time a computer tries to open the system. If the number of open computers exceeds the limit (Amount of computers varies with the license the customer acquires when purchasing the system), the system will not open.

    
asked by anonymous 24.04.2015 / 16:23

2 answers

1

It depends on your implementation.

If you are using direct TCP / IP connections, it is easy: Monitor the collection of connections, and deny new connections if the value reaches its maximum.

If you are using non-permanent connections, you will need to implement some kind of active session control.

    
08.07.2015 / 21:26
0

I believe you should store somewhere the amount that is in use (database, text file, or something). When the user clicks leave, you decrease the amount. Another way would be to implement the Heartbeat pattern as well:

link

    
24.04.2015 / 16:45