HI WELCOME TO KANSIRIS

Tracking IP Address in C#

Leave a Comment
in Controller Action Method:
string ip = HttpContext.Request.UserHostAddress;

in Global.asax:
string ip = HttpContext.Current.Request.UserHostAddress;

0 comments:

Post a Comment

Note: only a member of this blog may post a comment.