I am trying to Authenticate a web service by validating the IP address of the caller. The web service is meant to be internal to the network.
and in trying to do so the HttpContext.Current.Request.UserHostAddress has a weird value like "::1"
See debug point screenshot below.
Questions :
Thanks in advance.
It is indeed working and you are seeing "::1" because it's a reserved loopback address for ipv6 AKA localhost or 127.0.0.1 in ipv4
The loopback address, 0000:0000:0000:0000:0000:0000:0000:0001, may be abbreviated to ::1 by using both rules.
You have to know the difference between Authentication & Authorization, i suggest you create a new question with more details on the authentication methods that you are using in your web service
Collected from the Internet
Please contact [email protected] to delete if infringement.
Comments