deepstream.io-client-java icon indicating copy to clipboard operation
deepstream.io-client-java copied to clipboard

Windows connection error

Open AlexBHarley opened this issue 8 years ago • 0 comments

earlier i was doing work on mac , and everything was working fine, if i m running same code over windows then its not getting connect to deepstream, i am talikng about android client , getting this error

io.deepstream.DeepstreamException: CONNECTION_ERROR: failed to connect to /192.168.0.5 (port 6020): connect failed: ETIMEDOUT (Connection timed out)
Map config = new HashMap<String, Object>();
                config.put(ConfigOptions.SUBSCRIPTION_TIMEOUT.toString(), 500);
                config.put(ConfigOptions.RECORD_READ_ACK_TIMEOUT.toString(), 500);
                config.put(ConfigOptions.RECORD_READ_TIMEOUT.toString(), 500);
                client = new DeepstreamClient("localhost:6020", config);

[6:40] i have tried with this code and also with this

  Map config = new HashMap<String, Object>();
                config.put(ConfigOptions.SUBSCRIPTION_TIMEOUT.toString(), 500);
                config.put(ConfigOptions.RECORD_READ_ACK_TIMEOUT.toString(), 500);
                config.put(ConfigOptions.RECORD_READ_TIMEOUT.toString(), 500);
                client = new DeepstreamClient("192.168.0.5:6020/deepstream", config);

AlexBHarley avatar Apr 18 '17 16:04 AlexBHarley