I would like to user Get(UserCount) to restrict the number of connections to a file hosted remotely on Filemaker Server. I have two questions:
A client is restricted to 5 users by a simple If Get(UserCount) > 5 Then Close Application step in the opening script.
You will likely find Get ( UserCount ) to not be as helpful as you want for what you are trying to do. Mainly because if someone forcibly disconnects, it will take FMS a little bit to recognize that the client is gone. The timing isn't super long. FMS attempts to stay in contact with the client. After a couple of unsuccessful attempts to contact, FMS drops the connection.