parse the port