Added support for specifying hostname for the --server command

Fixes #301