Skip to main content



      Home
Home » Eclipse Projects » Paho » paho c client remote host broker connection
paho c client remote host broker connection [message #1795582] Tue, 25 September 2018 10:15 Go to next message
Eclipse UserFriend
Hi,

I am new to paho c client mqtt implementation. As of now, I have published message using the simple publishing example on a localhost mosquitto broker.


- Now I want to try publishing the message on a broker which is based on another computer. I tried by defining the ip address and port of that server in the same example. But It fails to connect when build

- Do I need to substitute something else in the
" #define ADDRESS "tcp://192.168.x.xxx: port statement or modify some other parameters in the code.

I am new to server/host model and thus need urgent help


Thank you
Yash
Re: paho c client remote host broker connection [message #1797403 is a reply to message #1795582] Tue, 30 October 2018 11:56 Go to previous message
Eclipse UserFriend
What you are doing is the right approach. You should check the firewall on the machine with the broker to ensure that the MQTT port you are using is open.
Previous Topic:Java Client
Next Topic:v1.3.0 stability?
Goto Forum:
  


Current Time: Mon Jun 23 00:11:20 EDT 2025

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

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

Back to the top