Getting IP Info with ASP.NET 4.0 and C# - ASP.NET Tutorials | Tutorials, Downloads, & Code Examples

Getting IP Info with ASP.NET 4.0 and C# - ASP.NET Tutorials | Tutorials, Downloads, & Code Examples

瀏覽:918
日期:2024-05-06
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...看更多