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
地址一定是分配的,不是設(shè)備固有的屬性。要說設(shè)備上固有的網(wǎng)絡(luò)地址,那是MAC
地址。所以,沒有“真實(shí)的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