bluerhinos / phpMQTT

a simple php class to connect/publish/subscribe to a MQTT broker
Other
773 stars 460 forks source link

Facing problem. #94

Open pavan-ambekar opened 4 years ago

pavan-ambekar commented 4 years ago

hello, I'm new to the PHP world, facing problem while connecting to MQTT.

I'm using the same library phpMQTT, and I'm using the IP address as the server. I'm using same publish example, getting error in phpMQTT file

The error is: stream_socket_client(): unable to connect to tcp://*.*..***:8083 (Connection timed out)

bluerhinos commented 4 years ago

Not sure I have enough information to go on, If 8083 is a websockets port I don't believe this library will connect to it

pavan-ambekar commented 4 years ago

even port 8083 and 8883 is not connecting sir.