eclipse / paho.mqtt.android

MQTT Android
Other
2.92k stars 882 forks source link

Client can't connect through proxy #161

Open Max01010101010101 opened 7 years ago

Max01010101010101 commented 7 years ago

Android API Version Bug Seen on: and Android Version Bug Seen on: Android 6.0.1 Marshmallow (API level 23)

About the server Emqtt, with a tcp and a websocket port open.

About the Bug If the client is using a proxy, it can't connect to the websocket in the server side. How can we connect an Android client using a proxy to our server?

jpwsutton commented 7 years ago

We'll need some further information about the kind of proxy you're using. If it's a simple TCP proxy then you shouldn't be having any problems, but if it's an HTTP proxy, there might be something strange going on with the HTTP headers that could be causing it to not work. Could you let us know:

Max01010101010101 commented 7 years ago

Thanks for your reply.

To test if some user behind a proxy could connect to the server, we use the very popular app: Psiphon Pro https://play.google.com/store/apps/details?id=com.psiphon3.subscription&hl=es

I also open an issue in the github of "Emqtt" (the server we are using), and seems like is not a Paho problem (client side library), but a bug in Emqtt (server side library). I gonna check that and then we can close this issue or keep going with it.

Let me thank you and all your team for Paho, this is a very good project.

Max01010101010101 commented 7 years ago

We can close this. Thanks.