set the server port and server directory