add host and port options

Please clean the indentation.