Want to protect your cyber security and still get fast solutions? Ask a secure question today.Go Premium

x
  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 1679
  • Last Modified:

Covnert HttpContext.Current.Request.UserHostAddress to IPAddress

How do I convert System.Web.HttpContext.Current.Request.UserHostAddress to System.Net.IPAddress?
0
brettr
Asked:
brettr
1 Solution
 
EspavoCommented:
This is how I get the IP address of the user:

Request.ServerVariables("REMOTE_HOST").ToString
0
 
brettrAuthor Commented:
IPAddress.Parse(thestring);

Answered my own question.  Sorry.
0

Featured Post

Veeam and MySQL: How to Perform Backup & Recovery

MySQL and the MariaDB variant are among the most used databases in Linux environments, and many critical applications support their data on them. Watch this recorded webinar to find out how Veeam Backup & Replication allows you to get consistent backups of MySQL databases.

Tackle projects and never again get stuck behind a technical roadblock.
Join Now