Changed to use config file for host and port.