Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR CSHARP

access server name or ip c# get

string name = System.Net.Dns.GetHostName();
host = System.Net.Dns.GetHostEntry(name);
System.Net.IPAddress ip = host.AddressList.Where(n => n.AddressFamily == System.Net.Sockets.AddressFamily.InterNetwork).First();
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #access #server #ip
ADD COMMENT
Topic
Name
1+9 =