Dapatkan Alamat IP Host ASP.NET Core

var httpConnectionFeature = httpContext.Features.Get<IHttpConnectionFeature>();
var localIpAddress = httpConnectionFeature?.LocalIpAddress;
karl-ashraful