android - PHP gets the real IP of the mobile phone
淡淡烟草味
淡淡烟草味 2017-05-24 11:30:36
0
6
787

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?

淡淡烟草味
淡淡烟草味

reply all (6)
为情所困

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

    左手右手慢动作

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

      某草草

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

        洪涛

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

          淡淡烟草味

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

            为情所困

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

              Latest Downloads
              More>
              Web Effects
              Website Source Code
              Website Materials
              Front End Template
              About us Disclaimer Sitemap
              php.cn:Public welfare online PHP training,Help PHP learners grow quickly!