You want to construct this url based on the port you've just set in the config.