Category: azure-web-sites

How to get the client IP using a Symfony 4 application hosted on Azure Web App

I want to log every login attempts on a Web App (Symfony 4.1) hosted on Azure. Based on this question, to get the client IP, I’m using : // $requestStack being SymfonyComponentHttpFoundationRequestStack $ip = $this->requestStack->getMasterRequest()->getClientIp(); However, the logs tell :…