Answer the question
In order to leave comments, you need to log in
Determine IP in ASP Core MVC?
Googled how to determine ip in ASP, found two solutions that did not help me, namely through adding a service
builder.Services.AddSingleton<IHttpContextAccessor, HttpContextAccessor>();
context.Connection.RemoteIpAddress
Answer the question
In order to leave comments, you need to log in
On the screenshot you are looking at LocalIpAddress. What about Remote? And from what machine are you making the request? If you make a request from localhost to localhost, then Remote will be localhost :)
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question