In Asp.Net Core core how to I get the web site's IP address?
Code Example - In Asp.Net Core core how to I get the web site's IP address?
var httpConnectionFeature = httpContext.Features.Get<IHttpConnectionFeature>();
var localIpAddress = httpConnectionFeature?.LocalIpAddress;