Forum Discussion

Sa-plus's avatar
Sa-plus
Copper Contributor
Aug 25, 2025

Binding a website that already uses required port.

Hello devs,

I hope you are having a great day.

I have already developed a website that runs on port 8081 in localhost. When i start a new site in IIS and set 8081 as the port in the bind section(which is already open via the website), I receive the error that the port is already in use. 

My question is how can I connect my domain to the local host and specified port in IIS or any other application.

The IIS has a default website(which brings the welcome page up) and by using that the connection between domain and server is assured(name servers are set and ready).

If only the IIS could relay all traffic to the localhost and port 8081 of the server, my problem would be solved.

I have attached some pictures for better understanding.

Thank you in advance

Best wishes,

Sahand

 

-As you see in this picture my website has started and working in the specified IP and port.

,-In this picture while binding the new website to port 8081 the IIS refuses to start the site with this error(port 8081 is already in use by my website).

 

1 Reply

  • Harold-Picado's avatar
    Harold-Picado
    Copper Contributor

    Hi,

    If you want to redirect all the traffic to specific address, probably we are talking about the ARR feature

    1. Bind IIS to your domain on port 80/443.
    2. Install ARR + URL Rewrite.
    3. Configure a reverse proxy rule to forward traffic to http://localhost:8081.

    That way, IIS acts as the front door, and your app continues to run happily on 8081 without conflicts.

     

    Regards!