How do I get the user IP address in Symfony2 controller? February 13, 2023 by Tarik You can get the client IP using Request service: $container->get('request')->getClientIp();