如何获得用户PC的IP地址:我对我的评价功能需要得到用户的系统(PC)的IP地址,而不是在C#N / W提供商的IP。我尝试之后,但没有奏效: string host = Dns.GetHostName(); //IPHostEntry local = Dns.GetHostByName(host); //IPAddress ipadd = local.AddressList[0]; {C} 请帮我尽快 谢谢
string host = Dns.GetHostName(); //IPHostEntry local = Dns.GetHostByName(host); //IPAddress ipadd = local.AddressList[0];