ClientName from C#
I am on my 2nd c# app and have a question. I would like to acquire the "clientname" from my Windows2k3 server.
I currently get the server's "computername" via this.strMachineName = Environment.MachineName.ToString(). I would like to get the "clientname", the client which is connected to the server.
I can see the data by running from a server command prompt, "set". Is there a C# function or class that would have this?
I've looked at SystemInformation and the environment class with no luck.
Thanks
2 Answers
Know the answer? Post it. Somebody with the same question will find it here.
Corey Tracey5 pointsPosted Mar 28, 2006, 9:00 AM EST
Corey Tracey5 pointsPosted Mar 28, 2006, 1:12 PM EST
1 short reply
David Costelloe2 pointsPosted Mar 28, 2006, 2:07 AM EST
Environment.UserName