search

Home  >  Q&A  >  body text

android - PHP gets the real IP of the mobile phone

If the mobile phone is connected to wifi, then my background PHP can only obtain the LAN IP assigned to the mobile phone by the router. How to obtain the real IP address of the client?

淡淡烟草味淡淡烟草味2817 days ago1018

reply all(6)I'll reply

  • 为情所困

    为情所困2017-05-24 11:32:36

    To know, IP地址一定是分配的,不是设备固有的属性。要说设备上固有的网络地址,那是MAC地址。所以,没有“真实的ipplease tell me the address”.

    reply
    0
  • ringa_lee

    ringa_lee2017-05-24 11:32:36

    Get a real IP as much as possible, but there is no guarantee that this IP is real

    reply
    0
  • 某草草

    某草草2017-05-24 11:32:36

    Use the interface directly on the network. http://pv.sohu.com/cityjson

    reply
    0
  • PHP中文网

    PHP中文网2017-05-24 11:32:36

    I can only say that I can get the IP, but I don’t know if it’s true or not

    reply
    0
  • 淡淡烟草味

    淡淡烟草味2017-05-24 11:32:36

    If your server environment and the client do not belong to the same LAN, the obtained client IP is real

    reply
    0
  • 为情所困

    为情所困2017-05-24 11:32:36

    You can’t get the mac address either, don’t even think about it, unless you use browser fingerprint

    reply
    0
  • Cancelreply