Local IP Address recorded in web application behind Azure application gateway

FPI Erick Aspiras(Erick Aspiras) 20 Reputation points
2025-05-08T06:39:09.73+00:00

Hello, there is a requirement for us to log/record the clients public IP address in one of our web apps running Tomcat. Now, it's behind an application gateway and I noted that the recorded IP Addresses were local. In our other web apps not behind the application gateway, the recorded IP Addresses were public IP Addresses. How can I configure application gateway to record public IP Addresses instead?

Azure Application Gateway
Azure Application Gateway
An Azure service that provides a platform-managed, scalable, and highly available application delivery controller as a service.
1,185 questions
{count} votes

Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.