For debugging, in 2025 and assuming you have Visual Studio: The url setting with port is accessed by opening the project properties, going to the Debug section, click to open debug launch profiles, and scrolling down to app url.