 |
Getting IP Info with ASP.NET 4.0 and C# - ASP.NET Tutorials | Tutorials, Downloads, & Code Examples
Let’s review what this code is doing. First, we get the hostname of our DNS and set that to our ‘hostName’ string variable. Then, we pass this to the GetHostEntry method that will return an IPHostEntry object which we name ‘localIp’. Next, we set the Text
www.aspnettutorials.com |
 |