Quantcast
Channel: ASP.NET Core
Viewing all articles
Browse latest Browse all 9386

[beta8] How to get client IP in controller action?

$
0
0

HttpContext.Features.Get<IHttpConnectionFeature>() returns null;

HttpContext.Connection.RemoteIpAddress property also contains null (looks like HttpContext.Connection is not initialized)

So how do I get client remote IP?


Viewing all articles
Browse latest Browse all 9386

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>