Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Paho » Paho ws disconnected when internal docker network
Paho ws disconnected when internal docker network [message #1862338] Mon, 27 November 2023 06:00
Alejandro de la Mata Chico is currently offline Alejandro de la Mata ChicoFriend
Messages: 1
Registered: November 2023
Junior Member
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
Previous Topic:Intermittent hang in Paho client when application is connecting.
Next Topic:paho client subscribe succeed, but no message received
Goto Forum:
  


Current Time: Fri May 03 11:12:18 GMT 2024

Powered by FUDForum. Page generated in 0.03736 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top