shehankonecranes / sp-react-native-mqtt

MQTT Client native module for react-native
68 stars 55 forks source link

MQTT onError: connection failure Unable to connect to server (32103) - java.net.ConnectException: failed to connect to localhost/127.0.0.1 (port 1883) from **** (port ****) after 10000ms: isConnected failed: ECONNREFUSED (Connection refused) #24

Open joy-mollick opened 3 years ago

joy-mollick commented 3 years ago

this repeatedly shows ,however I use ip address found by ipconfig on my laptop 192.168.*., same error .Any solution ?

wangqiwei66 commented 2 years ago

same error : LOG mqtt.event.error connection failure MqttException (0) - java.net.SocketTimeoutException: failed to connect to /192.168.10.57 (port 1883) from /10.0.2.16 (port 38276) after 10000ms

MicheleJohn commented 1 year ago

@joy-mollick is it possible that you may somehow have frozen your client config with "Object.freeze(/***/);"? Because that was my case, very unlucky i must say and hard to find because the console didn't fire any suspicious warnings... I had to accidentally remove the freeze operation and look in the console for this warning

image

I really hope it's your scenario too.