I use "Raspbian jessie" on my raspberry, and I have configure it to connect to my wi-fi, but the strange thing is when I try to send data with Mqtt, I have this error :
MqttException (0) - java.net.NoRouteToHostException: No route to host
So I have try to use ping to try my connection, and here is the strange result :
ping test.mosquitto.org PING test.mosquitto.org (184.108.40.206) 56(84) bytes of data. From 192.168.137.2 icmp_seq=1 Destination Host Unreachable From 192.168.137.2 icmp_seq=2 Destination Host Unreachable From 192.168.137.2 icmp_seq=3 Destination Host Unreachable From 192.168.137.2 icmp_seq=4 Destination Host Unreachable
What I saw from this result, is that It can resolve the host, but It can't connect to them, the ip address
But now, with the wi-fi connection, the ip address of my raspberry(I use this one to connect from putty) is
PS: I use thetering of my telephone, my pc and my raspberry are connected to its. What I have to do to resolve this problem?