I am trying to get client ip address using
HttpContext.Request.UserHostAddress;
but it returns ::1.
::1
How to solve
it is not bug actually you are running your application on local host it is just giving you the ip of of local host and it is ipv6 format