Other Recent Articles

Get Client Machine name from web app

By Eranda Ketawalage on Monday, November 7, 2011 0 comments



If you want to get the client PC name, you can use the following code block.

string computer_name;
string[] Host_Name = System.Net.Dns.GetHostEntry(Request.ServerVariables["REMOTE_HOST"]).HostName.Split(new Char[] { '.' });
computer_name = Host_Name [0].ToUpper();




Category:

0 comments:

Post a Comment

Amazon

Share this