get_real_ip
get_real_ip(); - get a real (address transmitted by the human browser on the Internet) IP address
Requests a page http://humanemulator.net/get_ip.php with content : getenv('REMOTE_ADDR'),
if there is no connection or the connection is overloaded, you can use the following addresses :
- http://icanhazip.com/
- http://bot.whatismyipaddress.com/
- http://ifconfig.me/
- https://api.ipify.org/
- http://checkip.dyndns.org/
- as well as any other units where the IP address is displayed.
After testing, the function returns the result of its work to the script :
IP address – IP address where the human is visible on the Internet
"NA" – if it was not possible to get it