Here are the steps to accomplish your goal :
- Open IIS Manager and navigate to the website you want to configure.
- In the Features View, double-click URL Rewrite.
- In the URL Rewrite module, click the Add Rule(s) action in the right-side panel.
- Select Reverse Proxy as the rule template, then click OK.
- In the Inbound rule section, specify the following information:
- Rule name: Give the rule name like "Reverse Proxy Port 20001 to 15001".
- Requested URL: Matches the Pattern.
- Using: Wildcards.
- Pattern: :20001/
- In the Outbound rule section, specify the following information:
- Server Proxy Pass Through: Checked.
- URL Rewrite: Unchecked.
- Reverse rewrite host in response headers: Checked.
- To: The URL of the local website or application, using the local port, for example: http://localhost:15001
- Click Apply in the right-side panel to save the changes.
With this configuration, incoming requests to http://[domain]:20001/ will be redirected to http://localhost:15001/.