# Android MQTT Client not working "stream terminated by RST\_STREAM with error code: PROTOCOL\_ERROR

**URL:** <https://www.thethingsnetwork.org/forum/t/android-mqtt-client-not-working-stream-terminated-by-rst-stream-with-error-code-protocol-error/61644>\
**Category:** MQTT\
**Created:** [February 25, 2023, 9:22am UTC](https://www.thethingsnetwork.org/forum/t/android-mqtt-client-not-working-stream-terminated-by-rst-stream-with-error-code-protocol-error/61644 "2023-02-25T09:22:35Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![se-bk](https://www.thethingsnetwork.org/forum/user_avatar/www.thethingsnetwork.org/se-bk/32/35697_2.png) [@se-bk](https://www.thethingsnetwork.org/forum/u/se-bk)\
**Post date:** [February 25, 2023, 9:22am UTC](https://www.thethingsnetwork.org/forum/t/android-mqtt-client-not-working-stream-terminated-by-rst-stream-with-error-code-protocol-error/61644/1 "2023-02-25T09:22:35Z")

</div>

Hello,

i just want to set uop an Android MQTT Client.  
I tested several clients in the google plaground store, but i cant get any connections.

With the PC-Program MQTT-Explorer i can get a connection.

I followed the intruction on the MQTT-Integration side.

I testet the Server with Server: eu1.cloud.thethings.network  
Port: 1883. and also the IP-Adress 63.34.215.128

User name is application\_id@ttn and password is the API-Key.

What can be the problem?

Greetings

E\_T

> Blockquote  
> {  
> “name”: “as.mqtt.connect.fail”,  
> “time”: “2023-02-25T09:14:13.277511820Z”,  
> “identifiers”: [  
> {  
> “application\_ids”: {  
> “application\_id”: “testnewjoin”  
> }  
> }  
> ],  
> “data”: {  
> “@type”: “[type.googleapis.com/ttn.lorawan.v3.ErrorDetails](http://type.googleapis.com/ttn.lorawan.v3.ErrorDetails)”,  
> “message\_format”: “stream terminated by RST\_STREAM with error code: PROTOCOL\_ERROR”,  
> “correlation\_id”: “9f9a72bab6d4450d8edc49d8f7c4e19d”,  
> “code”: 13  
> },  
> “origin”: “ip-10-100-13-97.eu-west-1.compute.internal”,  
> “context”: {  
> “tenant-id”: “CgN0dG4=”  
> },  
> “visibility”: {  
> “rights”: [  
> “RIGHT\_APPLICATION\_TRAFFIC\_READ”  
> ]  
> },  
> “unique\_id”: “01GT3XKWWXGW3PH3YNR4469GBX”  
> }

---

<div class="post-metadata">

**Author:** ![Johan\_Scheepers](https://www.thethingsnetwork.org/forum/user_avatar/www.thethingsnetwork.org/johan_scheepers/32/46550_2.png) [@Johan\_Scheepers](https://www.thethingsnetwork.org/forum/u/Johan_Scheepers)\
**Post date:** [February 25, 2023, 10:19am UTC](https://www.thethingsnetwork.org/forum/t/android-mqtt-client-not-working-stream-terminated-by-rst-stream-with-error-code-protocol-error/61644/2 "2023-02-25T10:19:44Z")

</div>

Have you tried port 8883 and you need to use TLS. And what version MQTT broker are you using?
