Implement support for -p flag that defines server listen port

Signed-off-by: Dan Sosedoff <dan.sosedoff@gmail.com>

Fix default port handling

Signed-off-by: Dan Sosedoff <dan.sosedoff@gmail.com>