Joth
Joth

Reputation: 165

I'd like to set a specific port number for visual studio 2017 API project

How can I set my API listen to port 1002?
In my vs2017 API project, I set the Project URL in the Project Properties to http://localhost:1002/
enter image description here This works when debugging, but when I publish the project to a server, the port is no longer valid.

Upvotes: 0

Views: 205

Answers (1)

Black Frog
Black Frog

Reputation: 11703

That port number 1002 is not common port. If you are hosting the app in IIS, you will need to add the port number to the site in IIS. You can have multiple site listening on different port in IIS.

SonarQube

Upvotes: 2

Related Questions