How to setup reverse proxy in IIS for non-http port using net.tcp

venkatesh_vsa 26 Reputation points
2023-01-19T17:10:00.11+00:00

How to setup reverse proxy in IIS for non-http port using net.tcp. Is this supported by IIS

e.g. reverse proxy incoming traffic on port 8000 to backend server on port 9000

Windows Server 2019
Windows Server 2019
A Microsoft server operating system that supports enterprise-level management updated to data storage.
3,882 questions
Internet Information Services
Windows Server 2016
Windows Server 2016
A Microsoft server operating system that supports enterprise-level management updated to data storage.
2,560 questions
0 comments No comments
{count} votes

3 answers

Sort by: Most helpful
  1. rr-4098 1,786 Reputation points
    2023-01-19T18:15:11.1666667+00:00

    Please see if the following link points you in the right direction. [https://learn.microsoft.com/en-us/iis/extensions/url-rewrite-module/reverse-proxy-with-url-rewrite-v2-and-application-request-routing


  2. Sam Wu-MSFT 7,536 Reputation points Microsoft Vendor
    2023-01-20T03:43:12.38+00:00

    @venkatesh_vsa

    You can try to enable net.tcp in IIS, and then setup reverse proxy, about how to enable net.tcp you can follow below steps:

    1.  Open Control Panel=>Programs=>Click on Uninstall or Change a Program=> Click on Link "Turn Windows Features on or off".
    2. Windows Features window will be opened, expand .NET Framework Advance Service.
    3. Expand WCF Services=>Select All the Features HTTP Activation, Message Queuing (MSMQ) Activation, Named Pipe Activation, TCP Activation, TCP Port Sharing. Click the OK button.
    4. You will get a message popup, close the window (Clicking on the close button), restart your machine, and follow the below steps.
    5. Then open Windows IIS=> in Connections panel=> expand Sites=>Select your website.
    6. Go to Right site Action Pane=> click on Advanced Settings.
    7. Expand the "Behavior" section in the field "Enable Protocols" set the value net.tcp.

    More information you can refer to this link: Enable Other Protocols (TCP, PIPE, MSMQ etc.) In IIS.


    If the answer is the right solution, please click "Accept Answer" and kindly upvote it. If you have extra questions about this answer, please click "Comment".

    Note: Please follow the steps in our documentation to enable e-mail notifications if you want to receive the related email notification for this thread.

    0 comments No comments

  3. Amit Singh 5,071 Reputation points
    2023-01-20T05:20:52.68+00:00

    IIS ARR/URL Rewrite is designed for HTTP/HTTPS only. If you want to forward raw TCP traffic, you need to check other products.

    0 comments No comments

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.