Hi McKathlin,
Thank you for reaching out to Microsoft Q & A forum.
You can right click your application in visual studio and click "Properties".
Then click "Web" tab and you can find "Project Url" input box. Change the url in this input box from original http://localhost:50997 to https://localhost:44366.
After that, you do not need to change port number manually when you start the application in visual studio. It will browse with https://localhost:44366 automatically.
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.
Please feel free to contact us if you have any additional questions.
If you've found the provided answer helpful, please click the "Accept Answer/Upvote" button. This will be beneficial to other members of the Microsoft Q&A forum community.
Thank you.