Handle explict ports in URL