Covnert HttpContext.Current.Request.UserHostAddress to IPAddress

How do I convert System.Web.HttpContext.Current.Request.UserHostAddress to System.Net.IPAddress?
brettrAsked:
Who is Participating?
 
brettrAuthor Commented:
IPAddress.Parse(thestring);

Answered my own question.  Sorry.
0
 
EspavoCommented:
This is how I get the IP address of the user:

Request.ServerVariables("REMOTE_HOST").ToString
0
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

All Courses

From novice to tech pro — start learning today.