All In One Script
MENU

Get the client IP address using PHP

by 2:44:00 AM
undefined
Get the client IP address using PHP How can I get the client IP address using PHP? I want to keep record of the user who logged into my website through his/her IP address. Best answer :  The simplest way to get the visitor’s/client’s IP address is using the $_SERVER['REMOTE_ADDR'] or $_SERVER['REMOTE_HOST'] variables. However, sometimes this does not return the correct IP address of the visitor, so we can use some other server variables to get the IP address. The below both functions are equivalent with the difference only

Instagram