Link to home
Start Free TrialLog in
Avatar of brettr
brettr

asked on

Covnert HttpContext.Current.Request.UserHostAddress to IPAddress

How do I convert System.Web.HttpContext.Current.Request.UserHostAddress to System.Net.IPAddress?
Avatar of Espavo
Espavo
Flag of South Africa image

This is how I get the IP address of the user:

Request.ServerVariables("REMOTE_HOST").ToString
ASKER CERTIFIED SOLUTION
Avatar of brettr
brettr

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial