Make the port a separate setting
When running behind a NAT or a proxy, the host to listen on and the publicly visible host may not be the same, so the host part of the mediator URL should not be used to set the host to listen on. Instead, allow setting a different port, but not host.