Java Detect Remote Users
Hello, I am brand new to the forums.
At work, we have two machines that are constantly being used by 7 people. I am looking to create an application that runs on each workstation and a server type program to run on the two machines that are shared.
The purpose of the program is to notify which machine has someone connected to it, and who is connected. Also it will display if it is available.
My question here is, how with java can I detect if someone is remotely logged into a machine, and pull their username?
Also, does anyone know a way to display a notification window on a remote machine. basically I am going to have a request button in the client program where you can notify the current person logged in that you request the machine.
Thanks in advance for your help!
More info to clarify.
Each of the 7 users have their own workstation and we all remote into one of these two machines to use bloomberg.
So I will have a server on the bloomberg machines and a client program on each persons workstation.
We remote in via windows Remote Desktop Connection, which is using Citrix.
Hmm. Since I'm not sure how Citrix or Remote Desktop Connection works, I'm far from sure if this will actually give you any meaningful info, but have a look at System.getProperty("user.name"). With luck, that'll give you who is connected to the machine.
Yea, unfortunately that only gives the local user.
I was able to find a tool called PSLoggedOn, which seems like it will provide the information I need.
Thanks for the help!