disable user

7 posts / 0 new
Last post
9081160
disable user

Hi
is it possible to use, and how, the parameters $CLIENT_IP$ and (or) $CONNECTION_ID$ to disconnect a user?
I need this to periodically disconnect a specific user from the device

Michael
.

You can only disconnect a user programmatically via the client API https://www.virtualhere.com/client_api

So run the client call

GET CLIENT STATE

Its ok if you run the client and the server on the same machine in order to do this entirely from the server

then parse that to get the state of the system then just call STOP USING,<address>

that will disconnect the other user from the device

9081160
.

both the client api to specify a password for the client certificate?

Michael
.

No, you cant do that from the API, you must use a client certificate that doesn't have a password.

9081160
.

It would be good to implement authorization in new versions of VirtualHere USB Server when the client connects to the server for the first time, that is, even before the device is displayed on the client.

Michael
.

Its already supported, the only way to do that is to run the client as a GUI and have a client certificate with a password. https://www.virtualhere.com/ssl_setup

9081160
.

yes, I use the SSL password, but as you wrote above, this does not work with api

Log in or register to post comments