Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
Re: [paho-dev] Problem with routing

Hi,

I realized that I tried telnet without binding, and when I tried it again, I noticed it won't connect if I bind to the ethernet address. I was going to try something else to find out more about if this actually is a network problem, as telnet not working was not enough to convince me of that, but now the IT support got something done and I can't reprocude the problem any more. So, for now, I can only say that the problem doesn't exist any more. Thanks for trying to help! I will get back to this if the problem comes back again and it still looks like an MQTT problem at that point.


-Antti

On Thu, Apr 5, 2018 at 4:23 PM, Antti Gärding <bbbrrreeeppp@xxxxxxxxx> wrote:
Hi,

Telnet says Connected to <ip> so I am assuming it got a connection. Also, pinging the server gives the same results as pinging 8.8.8.8 did.


-Antti


On Thu, Apr 5, 2018 at 4:13 PM, Domenico Briganti <domenico.briganti@xxxxxxx> wrote:
Hi Antti,
 try to telnet the remote ip/port, just to understand if is a MQTT problem or network one...


Domenico




Il 05/04/2018 15:05, Antti Gärding ha scritto:
Hi,

I am writing a Python 3.4 application that uses Paho as the MQTT client library. It has been working mostly fine, but I have now encountered a sudden problem and I wonder if someone on this list could assist me with it.

I am connecting to a server over ethernet and there is a company's firewall between my software and the server. It has worked fine for the 1,5 years I have been doing this development, except for two occasions, which seem similar to me. The first time the problem occured, the IT support was able to fix it in a day by doing something about NAT. Now the problem came back, and while it looks the same to me, the IT support hasn't been able to fix it again. There is a suspect that some router would have been replaced and that would have altered some settings, but that's just a guess.

What happens is that when I call Paho's connect(), trying to bind to a particular IP address (the device has several network interfaces), connect() just won't return. Ever.

When that happens and I attempt to make sure the ethernet connection works in general by pinging 8.8.8.8, I get this:
ping -I eth1 8.8.8.8
PING 8.8.8.8 (8.8.8.8) from 82.195.211.99 eth1: 56(84) bytes of data.
64 bytes from 8.8.8.8: icmp_seq=1 ttl=52 time=22.5 ms
From 82.195.210.1: icmp_seq=1 Redirect Host(New nexthop: 82.195.210.2)
From 82.195.210.1: icmp_seq=2 Redirect Host(New nexthop: 82.195.210.2)
64 bytes from 8.8.8.8: icmp_seq=2 ttl=52 time=22.8 ms
From 82.195.210.1: icmp_seq=3 Redirect Host(New nexthop: 82.195.210.2)
64 bytes from 8.8.8.8: icmp_seq=3 ttl=52 time=25.4 ms

What catches my attention is this: "Redirect Host(New nexthop: 82.195.210.2)". When everything works fine, that won't appear. I'm just not enough a network guy to say anything more. I am just stating what I am seeing.

Just for the sake of comparison, this is what I get when I ping the same address via a mobile connection that Paho uses with no problem:
ping -I wwan0 8.8.8.8
PING 8.8.8.8 (8.8.8.8) from 100.88.155.57 wwan0: 56(84) bytes of data.
64 bytes from 8.8.8.8: icmp_seq=1 ttl=55 time=883 ms
64 bytes from 8.8.8.8: icmp_seq=2 ttl=55 time=357 ms

Does anyone have any idea of what might be going on? Is there something I can do to fix this in how I use Paho? Or is this something about Paho, and if it is, could it be something the community might want to fix?


Best Regards,
Antti Gärding


_______________________________________________
paho-dev mailing list
paho-dev@xxxxxxxxxxx
To change your delivery options, retrieve your password, or unsubscribe from this list, visit
https://dev.eclipse.org/mailman/listinfo/paho-dev


-- 
Domenico Briganti | CTO
domenico.briganti@xxxxxxx
+39 392 4342965
---------------------------------------------
OSYS s.r.l.
Via Chiasserini 11/A, Milano, Italy
www.osys.it
---------------------------------------------

_______________________________________________
paho-dev mailing list
paho-dev@xxxxxxxxxxx
To change your delivery options, retrieve your password, or unsubscribe from this list, visit
https://dev.eclipse.org/mailman/listinfo/paho-dev



Back to the top