Use the default HTTP port if 0 is given.