Home > Code > C# > Get the IP address of the remote client using C#.NET

Get the IP address of the remote client using C#.NET

by Narain Siddharth   on Dec 15, 2011   Category: C#   |  Views: 1277    |  Points: 25   |  Silver 


The below C# sample used to get the IP address of the remote client.

            
string IPAdd = Request.UserHostAddress.ToString();
Response.Write(IPAdd);




Post Code  |  Code Snippet Home

User Responses


No response found, be the first to review this code snippet.

Submit feedback about this code snippet

Please sign in to post feedback

Latest Posts