Aloha~ Good afternoon, I have a curious situation, in an Apache I have a system made in ASP.net Core and when I try to use _httpContextAccessor.HttpContext.Connection.RemoteIpAddress.ToString();
the IP that returns me it is 127.0.0.1
having been published on the server, where, in theory, requests are received with its remote Client IP, any idea what is missing? In theory it should work.
Elementary my dear Watson, something important is missing in the
Configure
. Remember that things must be done decently and in order, let's see the code of yourstartup.cs
:You will need to include:
With this you will be able to see the IP from where the requests are made and holy remedy :D