不明白
echo $HTTP_X_FORWARDED_FOR;
没啥反映

解决方案 »

  1.   

    http://www.tech521.com/show_data.asp?tid=1421
      

  2.   

    用楼上给的方式试了试,结果还是192(防火墙的地址)..
    php版本:4.0.6(linux)
            4.3.0(win)
      

  3.   

    如在linux上侧:
    $str=exec("grep /proc/net/arp");
    ereg("(..:..:..:..)",$str,$regs);
    $ip=$regs[1];
      

  4.   

    nat的话应该得不到内网的ip
    端口被转换了
      

  5.   

    if (!($ip = getenv('HTTP_X_FORWARDED_FOR'))) $ip = getenv('REMOTE_ADDR');