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

Ws disconnection when running inside docker network #253

Open
alexmc1510 opened this issue Nov 27, 2023 · 0 comments
Open

Ws disconnection when running inside docker network #253

alexmc1510 opened this issue Nov 27, 2023 · 0 comments

Comments

@alexmc1510
Copy link

Dear community,

I am experiencing an issue with the library. Below mi config:

  • docker compose running:
    -- mosquitto service with name mqtt-broler and exposing 1883 and 9001 for mqtt and was respectively.
    -- http application with paho client library for ws.

Both are connected at the same time to an internal docker network.
I am able to ping each container from the other by its name.

Problem:
If I connect to the broker using ws://localhost:9001/mqtt works perfectly.
If I connect to the broker using ws://mqtt-broler:9001/mqtt I get a disconnection message. It never connects.

Just for curiosity I tried with mqtt instead of ws and worked perfectly.

Could someone help me with that?

Regards

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

1 participant