The example in this article describes the ASP.net method for simply getting the server and client computer names. Share to everyone for your reference, specific as follows:
Gets the server-side computer name
string serverpcname = System.Net.Dns.GetHostName ();
Get client computer name
System.Net.IPAddress clientip = System.Net.IPAddress.Parse (request.userhostaddress);// Gets the IP object
System.Net.IPHostEntry ihe = System.Net.Dns.GetHostEntry (ClientIP) based on the destination IP address;//Create host object string based on IP object
Clientpcname=ihe. hostname;//Get Client host name
More interested readers of asp.net related content can view the site topics: "asp.net operation JSON tips summary", "asp.net string operation tips Summary", "ASP.net Operation XML Skills summary", "asp.net file Operation skills Summary", " asp.net Ajax Skills Summary topic and the "ASP.net cache operation skills Summary."
I hope this article will help you to ASP.net program design.