Made hostname, port configurable