How can i get Client IP address.My application is made in ASP.net c#.
Is there any function in jquery we can use to fetch client IP address and name when user login into my application.
Thanks
How can i get Client IP address.My application is made in ASP.net c#.
Is there any function in jquery we can use to fetch client IP address and name when user login into my application.
Thanks
I have this little C# property snippet which returns IP address of actual user connected to the server.
public static string ClientIP
{
get
{
return HttpContext.Current.Request.UserHostAddress;
}
}
If you want to use in your JQuery source code then you need to insert this into your generated cshtml.