I am trying to get the client\'s IP address in Laravel.
It is easy to get a client\'s IP in PHP by using $_SERVER[\"REMOTE_ADDR\"]. It is working fine
$_SERVER[\"REMOTE_ADDR\"]
When we want the user's ip_address:
ip_address
$_SERVER['REMOTE_ADDR']
and want to server address:
$_SERVER['SERVER_ADDR']