Include the port in temp_url if necessary.