vb.net count concurrent users

what would be the best way in a windows app to track concurrent yours of our system. I would prefer not using dongles but still want to limit use.

thanks in advance
greg
LVL 8
AutoeformsAsked:
Who is Participating?
 
gregoryyoungConnect With a Mentor Commented:
that is a possibility but there are easier ways ...

is this a single server system or multiple (i.e. farmed)?

Chances are you will need to maintain info on unique users anyway, can a user reasonably have more than one connection?

Greg
0
 
cookreCommented:
Although a mutex is most frequently for process synchronization, it is commonly used to check for multiple instances of a program.

One can, however, also use mutexes to count program instances by included an instance count within the sought mutex name.  For example:

canicontinue=false
for i=1 to maxcount
     (
     soughtmutexname="myspecialmutexname" + i.tostring
     if soughtmutexname not in use
         (
         canicontinue=true
         exit loop
         )
     )

if not canicontinue
   (
   program already has maxcount instances
   )

0
 
AutoeformsAuthor Commented:
i am a little confused, how does this work exactly when the clients are running of the server
0
Free Tool: SSL Checker

Scans your site and returns information about your SSL implementation and certificate. Helpful for debugging and validating your SSL configuration.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

 
gregoryyoungCommented:
I need a little bit more information ... this is an app that people download / use ?

Could you just keep a centralized server to handle a registration process?

Is there any sort of communications being run with a centralized server ?

Greg
0
 
AutoeformsAuthor Commented:
it will be run on a server
i had thought about creating a semaphore and refreshing it while the user is on the system. that way i could time it out after 5 or 10 minutes so they don't end up locking up users if the disconnect abnormally
g
0
 
cookreConnect With a Mentor Commented:
There's still a bit of confusion.

If it's actually running ON the server (a la Terminal Services), that's not so bad.

If it's running on the client, i.e., the client runs a shortcut or bat file that references the exe on the server, then that's a bit more problematic.  And, as gregoryyoung hinted at, if the program can be called up from more than one server, that's even worse.

0
 
Eduard GherguLeader SibiuCommented:
Try to use a single server as a license server. You can buy a dedicated solution or you can develop your own one.
The ideea is to use sockets and count the connections to your license server.
0
 
GregWeberCommented:
what solution would you recommend buying or how would i setup the socket counting i have never done that

thanks
0
 
gregoryyoungCommented:
does the app maintain a connection to the server ?

When you are talking about tracking concurrent users I assume from above that you mean those who are running the program / connected to your servers at that moment. What does your server look like? how do you maintain your connections? This is a basic functionality of the server to count the number of concurrent connections.

Greg
0
 
GregWeberCommented:
the app code be running of the server on the client via a short cut.
it could also be running on the client and merely connected to the datbase.

I am fearing my only way to control this accurately is with dongles or by keeping a count a database table which presents other problems.
0
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

All Courses

From novice to tech pro — start learning today.