Make hostname and ports command line configurable