Reputation: 165
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/
This works when debugging, but when I publish the project to a server, the port is no longer valid.
Upvotes: 0
Views: 205
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.
Upvotes: 2