How to access mosquitto server hosted on my computer

I am trying to install a Mosquitto server for MQTT on my Windows system and then access it through my website. I followed the instructions given here http://tokudu.com/2010/how-to-implement-push-notifications-for-android/ and http://michaelconnors.net/article/462/hello-mqtt .

For now, I can deploy the android example using the tokudu server, and I also managed to install the mosquitto server on my local computer. When I try to run Mosquitto_sub, it works.

My problem is when I change the ip in send_mqqt.php to my ip to access MQQT on my system, I get this error - fsockopen () [function.fsockopen]: failed to connect to 82.35.160.123:1883 (Timeout connection).

I am not sure which IP should I use. I want to access it using my external ip.

Apologies If I do not make any sense, or my question is unclear.

+5
source share

All Articles