set host and port