cancel
Showing results for 
Search instead for 
Did you mean: 
1

Ask

2

Reply

3

Solution

MQTT messages blocked for MQTT Dash on phone

Gadjet
3: Seeker
3: Seeker

Hi,

I have been using MQTT Dash on my phone to monitor/control things for some time now, since moving to Vodafone home fiber broadband (12/6/23) my app no longer connects to the Cloudmqtt server, I get this error when trying the online WebUI page: -

"Could not connect to WebSocket server, most likely you're behind a firewall that doesn't allow outgoing connections to port 30388"

Does anyone know how I can configure the router  to allow this connection?

 

Thanks

18 REPLIES 18

Cynric
16: Advanced member
16: Advanced member

@Gadjet  Link below shows an example, just change the specifics for MQTT. Don't forger that the MQTT software may want more ports depending on which implementation of MQTT you are using.

https://forum.vodafone.co.uk/t5/Other-broadband-queries/Forward-port-5000-on-the-Vodafone-router-to-...

 

Thanks for the info, I followed the link and tried various combinations but I can't get it to work, you have to specify an IP address (I added my phone IP) and the ports but it made no difference 😞 .

This may be because of my lack of understanding of prt forwarding or the router, I don't know, I will see if I can get my username and password fron Vodafone and use my old router (Asus RT-AC1200) if it can be configured for Fibre use.

 

Phil

Cynric
16: Advanced member
16: Advanced member

@Gadjet Have a look at the router log to see if there is any hint.

Also there is a long interesting thread on this forum about alternative routers.


@Cynric wrote:

@Gadjet Have a look at the router log to see if there is any hint.


I had a look at the event log but couldn't see anything obvious, then again I'm not sure I would see it if it was there 😀

06/14/2023	09:25:10	[130473.438522] DROP wan in: IN=pppoe-wan OUT= MAC= src=xx.xx.xxx.x DST=xx.xx.xxx.x LEN=40 TOS=0x00 PREC=0x00 TTL=246 ID=1068 PROTO=TCP SPT=43681 DPT=54007 WINDOW=1024 RES=0x00 SYN URGP=0 MARK=0x8000000	firewall
06/14/2023	09:24:52	Failed to send DHCPV6 message to ff02::1:2 (Permission denied)	system
06/14/2023	09:23:45	[130388.938810] DROP wan in: IN=pppoe-wan OUT= MAC= src=xx.xx.xxx.x DST=xx.xx.xxx.x LEN=44 TOS=0x00 PREC=0x00 TTL=41 ID=16633 PROTO=TCP SPT=26620 DPT=3128 WINDOW=1024 RES=0x00 SYN URGP=0 MARK=0x8000000	firewall
06/14/2023	09:22:55	[130338.864023] DROP wan in: IN=pppoe-wan OUT= MAC= src=xx.xx.xxx.x DST=xx.xx.xxx.x LEN=40 TOS=0x00 PREC=0x00 TTL=245 ID=35268 PROTO=TCP SPT=47850 DPT=2602 WINDOW=1024 RES=0x00 SYN URGP=0 MARK=0x8000000	firewall
06/14/2023	09:22:46	Failed to send DHCPV6 message to ff02::1:2 (Permission denied)	system
06/14/2023	09:22:07	[130290.966889] DROP wan in: IN=pppoe-wan OUT= MAC= src=xx.xx.xxx.x DST=xx.xx.xxx.x LEN=48 TOS=0x00 PREC=0x00 TTL=250 ID=30570 DF PROTO=UDP SPT=32099 DPT=18182 LEN=28 MARK=0x8000000	firewall
06/14/2023	09:21:09	failed to send packet: Network is unreachable	data
06/14/2023	09:21:02	[130225.963388] DROP wan in: IN=pppoe-wan OUT= MAC= src=xx.xx.xxx.x DST=xx.xx.xxx.x LEN=48 TOS=0x00 PREC=0x00 TTL=249 ID=21614 DF PROTO=UDP SPT=32099 DPT=26099 LEN=28 MARK=0x8000000	firewall
06/14/2023	09:20:52	Failed to send DHCPV6 message to ff02::1:2 (Permission denied)	system
06/14/2023	09:19:49	[130153.134886] DROP wan in: IN=pppoe-wan OUT= MAC= src=xx.xx.xxx.x DST=xx.xx.xxx.x LEN=44 TOS=0x00 PREC=0x00 TTL=42 ID=1058 PROTO=TCP SPT=13125 DPT=1387 WINDOW=1024 RES=0x00 SYN URGP=0 MARK=0x8000000
06/14/2023	09:18:53	Failed to send DHCPV6 message to ff02::1:2 (Permission denied)	system
06/14/2023	09:18:39	[130083.105641] DROP wan in: IN=pppoe-wan OUT= MAC= src=xx.xx.xxx.x DST=xx.xx.xxx.x LEN=40 TOS=0x00 PREC=0x00 TTL=241 ID=49113 PROTO=TCP SPT=40637 DPT=3392 WINDOW=1024 RES=0x00 SYN URGP=0 MARK=0x8000000	firewall
06/14/2023	09:17:46	[130030.093616] DROP wan in: IN=pppoe-wan OUT= MAC= src=xx.xx.xxx.x DST=xx.xx.xxx.x LEN=232 TOS=0x00 PREC=0x00 TTL=245 ID=54321 PROTO=UDP SPT=500 DPT=500 LEN=212 MARK=0x8000000	firewall
06/14/2023	09:16:50	Failed to send DHCPV6 message to ff02::1:2 (Permission denied)	system
06/14/2023	09:16:42	[129966.037502] DROP wan in: IN=pppoe-wan OUT= MAC= src=xx.xx.xxx.x DST=xx.xx.xxx.x LEN=48 TOS=0x00 PREC=0x00 TTL=249 ID=50261 DF PROTO=UDP SPT=32099 DPT=22362 LEN=28 MARK=0x8000000	firewall
06/14/2023	09:15:54	failed to send packet: Address family not supported by protocol	data
06/14/2023	09:15:54	failed to send packet: Network is unreachable	data
06/14/2023	09:15:40	[129903.711631] DROP wan in: IN=pppoe-wan OUT= MAC= src=xx.xx.xxx.x DST=xx.xx.xxx.x LEN=40 TOS=0x00 PREC=0x00 TTL=245 ID=56490 PROTO=TCP SPT=47803 DPT=2328 WINDOW=1024 RES=0x00 SYN URGP=0 MARK=0x8000000	firewall
06/14/2023	09:15:37	[129901.057573] DROP wan in: IN=pppoe-wan OUT= MAC= src=xx.xx.xxx.x DST=xx.xx.xxx.x LEN=48 TOS=0x00 PREC=0x00 TTL=249 ID=41110 DF PROTO=UDP SPT=32099 DPT=20628 LEN=28 MARK=0x8000000	firewall
06/14/2023	09:14:55	Failed to send DHCPV6 message to ff02::1:2 (Permission denied)	system

OK, I downloaded the NAT table data and I can see that all the IOT sensors  I have are successfully sending data to the Cloudmqtt server via port 10388 but the all the phone MQTT apps I have are not getting through to receive the data, I have now also confirmed that they don't work on 4G either so I suppose it isn't to do with the router? I have contacted Cloudmqtt and asked them what it could be but it is strange that this all started on the day that I had Vodafone Fibre Broadband installed.

Cynric
16: Advanced member
16: Advanced member

@GadjetMay I suggest the following;

1. Visit a friend and see if it works from their mobile phone

2. Download the Android (I am guessing you are not on Mac) development suite for Windows (or Unix) and see if the MQTT apps work that way

3. Check that the apps have not been impacted by an Android update

4. Check that the apps are not due an update

5. See if this is reported on StackExchange and XDA-Developers websites

All good sugestions, I've tried it on the wife's phone on 4G and it fails, I've used a different MQTT app and this one has a log file and although I'm no expert it looks like the cloudmqtt server is refusing the connection what do you think?

11:05:33
Failed to connect to tcp://m20.cloudmqtt.com:
10388.
Cause: java.net.ConnectException: failed to
connect to m20.cloudmqtt.com/34.251.215.118
(port 10388) from /xxx.xxx.xxx.xxx (port
45390) after 30000ms: isConnected failed:
ECONNREFUSED (Connection refused)
Message: Unable to connect to server

Cynric
16: Advanced member
16: Advanced member

@Gadjet  OK, some good news first, the destination is up, see https://status.cloudmqtt.com/

Could you try m10 instead of m20? I doubt it will work, but simple solutions sometimes do.

If you have Mosquito installed somewhere you can do the connect steps manually at the prompt and it could just be a spelling error in the credentials. If you have other MQ software it probably also allows working from the prompt. Thirty seconds is a bit of a long T/O for bad credentials, so perhaps at the prompt you would get a richer error message.

I have used Mosquito at home and also IBM WebSphere MQ and RabbitMQ professionally.


@Cynric wrote:

@Gadjet  OK, some good news first, the destination is up, see https://status.cloudmqtt.com/

Could you try m10 instead of m20? I doubt it will work, but simple solutions sometimes do.

If you have Mosquito installed somewhere you can do the connect steps manually at the prompt and it could just be a spelling error in the credentials. If you have other MQ software it probably also allows working from the prompt. Thirty seconds is a bit of a long T/O for bad credentials, so perhaps at the prompt you would get a richer error message.

I have used Mosquito at home and also IBM WebSphere MQ and RabbitMQ professionally.


OK thanks for the suggestions, I have tried MQTT explorer and it also wouldn't connect, I then reset  my instance on the cloudmqtt server and then it connected OK, I have a suspicion I may have gone over some  limit or  something as I'm still using the free legacy account "Cute cat" I'm thinking of upgrading to a paid plan but not until this is sorted out so I know I won't have the same issue when I pay 😀.

I've asked CloudMQTT to what the issue may be so let's see if they get back to me.

I think this may have happened coincidentally with me going over to Vodafone broadband so it's probably not a Vodafone issue, thanks for trying to help Cynric it's much appreciated.