Change localhost port for blazor app

If not mentioned in the app settings for the blazor app, where do we change the port number? I ask because on mac there's a shared port number for airplay receiver.