frozenway
V2EX  ›  PHP

最近用 PHP 获取客户端 IP 时,得到一些疑似外星人的 IP 地址。好诡异

  •  
  •   frozenway · Aug 1, 2019 · 4802 views
    This topic created in 2480 days ago, the information mentioned may be changed or developed.

    用 TP 的get_client_ip()函数获取的 IP 地址,得到如下一些外星人 IP

    ::ffff:183.199.237.4
    ::ffff:118.212.209.5
    ::ffff:120.239.44.28
    

    更诡异的是,调用百度 IP 地址查询时,居然可以查得到这些 IP 的具体地址。

    是不是很奇怪?

    6 replies    2019-08-01 15:26:54 +08:00
    FantaMole
        1
    FantaMole  
       Aug 1, 2019   ❤️ 2
    IPv4 映射的 IPv6 地址
    zjyl1994
        2
    zjyl1994  
       Aug 1, 2019
    ipv6 的简写形式,有什么可惊讶的
    ThirdFlame
        3
    ThirdFlame  
       Aug 1, 2019
    183.199.237.4
    118.212.209.5
    120.239.44.28
    frozenway
        4
    frozenway  
    OP
       Aug 1, 2019
    @FantaMole @zjyl1994 原来是这样,php 获取 ip 地址的方式需要更改吗?
    to2false
        5
    to2false  
       Aug 1, 2019
    既然都能百度了,为什么不百度全
    mangwen
        6
    mangwen  
       Aug 1, 2019
    IPV6
    About   ·   Help   ·   Advertise   ·   Blog   ·   API   ·   FAQ   ·   Solana   ·   3043 Online   Highest 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 39ms · UTC 05:09 · PVG 13:09 · LAX 22:09 · JFK 01:09
    ♥ Do have faith in what you're doing.