mosquitto broker, port forwarding

587 views
Skip to first unread message

Eliasz Michalski

unread,
Oct 29, 2018, 9:36:14 AM10/29/18
to MQTT
hi,
I'm wondering is it posible to publish topic from my android phone which isn't in my local network to broker on raspberry pi in local network. I'm thinking about port forwarding, has anyone tried this?

gi-tux

unread,
Oct 29, 2018, 9:40:48 AM10/29/18
to MQTT
I  have tried it and it works for me.  But I have an internal DNS and external DNS that match that name so that it works both places.

elimicc

unread,
Oct 29, 2018, 10:05:33 AM10/29/18
to MQTT
I read something about port forwarding and can't imagine how it will work. I've got my local ip adress of broker and port which broker is listening, and a password to connect to a broker, so did i nedd to set the router configuration to forward a port to my local broker on port 1883 and change in my android aplication the broker adress to router DNS and external port to forward? 

Slow Bro

unread,
Oct 29, 2018, 12:06:28 PM10/29/18
to mq...@googlegroups.com
Yes that’s how you do it.

Note that connections over the internet should be encrypted. If you’re connecting to 1883 that is the default port for unencrypted communications and thus your password would be clear text. Perhaps you are using payload encryption but I am unsure whether that encrypts the password. 
--
To learn more about MQTT please visit http://mqtt.org
---
You received this message because you are subscribed to the Google Groups "MQTT" group.
To unsubscribe from this group and stop receiving emails from it, send an email to mqtt+unsubscribe@googlegroups.com.
To post to this group, send email to mq...@googlegroups.com.
Visit this group at https://groups.google.com/group/mqtt.
For more options, visit https://groups.google.com/d/optout.
Reply all
Reply to author
Forward
0 new messages