获取本地IP地址信息
public static string GetAddressIP()
{
///获取本地的IP地址
string AddressIP = string.Empty;
HttpContextAccessor context = new HttpContextAccessor();
AddressIP = context.HttpContext.Connection.RemoteIpAddress.ToString();
return AddressIP;
}