Intellipaat Back

Explore Courses Blog Tutorials Interview Questions
0 votes
3 views
in AWS by (5.6k points)
My goal is to see a client's external IP addresses in IIS log files for reporting/troubleshooting.

We have a WCF application running on EC2 instances behind an Elastic Load Balancer. I have the F5 ISAPI DLL installed in IIS. The load balancer is set up to use HTTPS forwarding to HTTPS. There is a valid certificate hosted on the ELB and a self-signed certificate on IIS.

Amazon says this is an issue with the application. The team is having problems determining what to change in the WCF configuration. Can anyone help me to fix this problem?

1 Answer

0 votes
by (12.4k points)

The reason for this is due to the fact that when you work with a Load Balancers it passes the data along and the IP address of the request becomes that of the load balancer. The user's actual IP address is recorded in the "x-forwarded-for" server variable.

In IIS you need to use a third-party ISAPI filter to record that value when it is found in the request, which will make things work.

Interested in learning AWS? Check out: AWS Certification

Related questions

Want to get 50% Hike on your Salary?

Learn how we helped 50,000+ professionals like you !

31k questions

32.8k answers

501 comments

693 users

Browse Categories

...