rewrite port number for raml and console requests