skip to Main Content

PHP Get IPv4 Address

I have trouble getting IPv4 Address, as IPv6 seems automatically preferred. However, this is very difficult, as my IP Whitelist system uses solely IPv4. I am using following code to get the IP of the client: $client_ip = $_SERVER['HTTP_X_FORWARDED_FOR']; And…

VIEW QUESTION
Back To Top
Search