If you’re using some of the Url Helpers in asp.net mvc, like Url.Action in one of your controllers, you may run into an issue where the generated url will contain a non public port number. In that case, you can just add a setting to your config value as noted here:
to true should remedy the issue.
It should look something like this:
<add key=”aspnet:UseHostHeaderForRequestUrl” value=”true”/>