use config options for host and port