Added command line support for host and port