added server -p port paramater