To open your website or web application on a specific port when you debug using Visual Studio, right click the website project and select "Property Window", alternatively you can click F4. Select the Port Number option and write the port number you want to use. If Port Number is disabled then select False from Use Dynamic Ports option, save it and restart the steps from the beginning.
Hope this will help. Thanks