📜  在 Asp.Net Core 核心中如何获取网站的 IP 地址? - C# 代码示例

📅  最后修改于: 2022-03-11 14:49:19.350000             🧑  作者: Mango

代码示例1
var httpConnectionFeature = httpContext.Features.Get();
var localIpAddress = httpConnectionFeature?.LocalIpAddress;