android - PHP gets the real IP of the mobile phone
淡淡烟草味2017-05-24 11:30:36
0
6
952
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?
To know,
IP
地址一定是分配的,不是设备固有的属性。要说设备上固有的网络地址,那是MAC
地址。所以,没有“真实的ip
please 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