add flag of port number for local server.