Install Advanced Logging in IIS and configure X-Forwarded-,
: Https://www.microsoft.com/en-gb/download/details.aspx? Id = 7211
1. Start the IIS manager and click the server name on the left. (Note: Do not click the site or virtual directory under the website. Otherwise, the following content cannot be found"Enable Advanced Logging");
2. on the homepage, double-click"Advanced Logging";
3. Click"Enable Advanced Logging"(Enable advanced logging );
4. Click"Edit Logging Fields"(Edit log fields );
5. In"Edit Logging Fields"In the window, click "Add Field" and enter the following information;
Field ID input "ClientSourceIP ";
Select "Default" for Category ";
Select "Request Header" for Source type ";
Source name input "X-Forwarded-";
6. Click "Add Log Definition" (Add Log Definition) in the action pane on the right );
7. Enter "Client Source IP" in the "Base file name" field, click "Select Fields", Select "ClientSourceIP", and click "application" to return to the home page;
8. Restart IIS (iisrest command ).
Note: Click View Log Files to View the Log Path ".
Thank you for your criticism.
Address: http://www.cnblogs.com/zhangtingzu/p/7300457.html
References: https://www.loadbalancer.org/blog/iis-and-x-forwarded-for-header/