if(Request.ServerVariables["HTTP_VIA"]!=null){  
    
string  user_IP=Request.ServerVariables["HTTP_X_FORWARDED_FOR"].ToString();  
}
else{
    
string  user_IP=Request.ServerVariables["REMOTE_ADDR"].ToString();  
}

相关文章:

  • 2022-12-23
猜你喜欢
  • 2022-02-20
  • 2021-11-30
  • 2021-10-02
相关资源
相似解决方案