In Asp.Net Core core how to I get the web sites IP address

112

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;

Comments

Submit
0 Comments