Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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 this issue Aug 17, 2021 · 2 comments

Comments

@joy-mollick
Copy link

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

@wangqiwei66
Copy link

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
Copy link

MicheleJohn commented Dec 5, 2022

@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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants