How can a server find real client IP address?

后端 未结 2 2019
执念已碎
执念已碎 2020-12-12 07:46

I can only access the internet from my place from behind a NAT and a proxy. This site however also shows my machine\'s private LAN address, as well as my NAT\'s public addre

相关标签:
2条回答
  • 2020-12-12 08:12

    Are you sure you're behind just a NAT router? If you're behind a proxy, the proxy might well be adding an X-Forwarded-For header.

    0 讨论(0)
  • 2020-12-12 08:12

    They're using Java for that:

    <span class="pbb" id="lanip"><b>Router IP Address Testing...</b></span>
    <script>
    function MyAddress(IP)
    { document.getElementById("lanip").innerHTML = IP; }
    </script>
    <applet code="MyAddress.class" MAYSCRIPT width=0 height=0>
    You Need To Enable Java For This To Work
    </applet> 
    
    0 讨论(0)
提交回复
热议问题