Hostname parsing with ports fixed