How can we get the IP address of the client ? There are many options but the easiest solution is $_SERVER["REMOTE_ADDR"]; 1 $_SERVER["REMOTE_ADDR"];