📜  获取主机 ip 地址 asp.net core - C# 代码示例

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

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