0

I have created an API using ASP.NET Web API. Normally all of my API caller make a portal which invoke my API. Is it possible if I want to get the IP of the caller, and not the portal?

Currently I'm using System.Web.HttpContext.Current.Request.UserHostAddress

But I believe this will return the IP of the portal. What I expecting is the IP of the person whois trigger the portal. Is it possible?

dausdashsan
  • 241
  • 1
  • 6
  • 16
  • What is the problem you are trying to solve here, why do you think you need the IP address? Are you trying to **uniquely identify** users? If so, you can opt for `SessionID` or `Cookie`. – Nameless Mar 15 '17 at 10:54
  • `System.Web.HttpContext.Current.Request.UserHostAddress` is usually the IP address of the proxy server or router. – Nameless Mar 15 '17 at 11:12

0 Answers0