# Rocket Chat+ cannot connect \[iOS\]

**URL:** <https://forums.rocket.chat/t/rocket-chat-cannot-connect-ios/714>\
**Category:** Community Support\
**Created:** [May 5, 2018, 1:40am UTC](https://forums.rocket.chat/t/rocket-chat-cannot-connect-ios/714 "2018-05-05T01:40:55Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![paul](https://sea1.discourse-cdn.com/flex021/user_avatar/forums.rocket.chat/paul/32/259_2.png) [@paul](https://forums.rocket.chat/u/paul)\
**Post date:** [May 5, 2018, 1:40am UTC](https://forums.rocket.chat/t/rocket-chat-cannot-connect-ios/714/1 "2018-05-05T01:40:55Z")

</div>

I am using the Rocket Chat app on iOS, and trying to install the Rocket Chat+ app now but it will not accept my server as a valid URL, it shows an alert with the message:  
**"Oops! The URL you entered is invalid. Check it and try again, please!"**

The server is self hosted, running behind Apache proxy. The Mac app works fine, as does the old Cordova app. I tried to validate the websocket connection using Curl, it seems to work (see below).

What am I doing wrong? 😩

```
curl -i -N -H "Connection: Upgrade" -H "Upgrade: websocket" -H "Host: chat.corp.com.br" -H "Origin: chat.corp.com.br" -H "Sec-WebSocket-Key: fVXESE8fjBMx8HheW0YlZQ==" -H "Sec-WebSocket-Version: 13" https://chat.corp.com.br/websocket --verbose
* Trying 10.0.1.2...
* TCP_NODELAY set
* Connected to chat.corp.com.br (10.0.1.2) port 443 (#0)
* ALPN, offering http/1.1
* Cipher selection: ALL:!EXPORT:!EXPORT40:!EXPORT56:!aNULL:!LOW:!RC4:@STRENGTH
* successfully set certificate verify locations:
* CAfile: /opt/local/share/curl/curl-ca-bundle.crt
  CApath: none
* TLSv1.2 (OUT), TLS header, Certificate Status (22):
* TLSv1.2 (OUT), TLS handshake, Client hello (1):
* TLSv1.0 (IN), TLS handshake, Server hello (2):
* TLSv1.0 (IN), TLS handshake, Certificate (11):
* TLSv1.0 (IN), TLS handshake, Server key exchange (12):
* TLSv1.0 (IN), TLS handshake, Server finished (14):
* TLSv1.0 (OUT), TLS handshake, Client key exchange (16):
* TLSv1.0 (OUT), TLS change cipher, Client hello (1):
* TLSv1.0 (OUT), TLS handshake, Finished (20):
* TLSv1.0 (IN), TLS change cipher, Client hello (1):
* TLSv1.0 (IN), TLS handshake, Finished (20):
* SSL connection using TLSv1.0 / DHE-RSA-AES256-SHA
* ALPN, server did not agree to a protocol
* Server certificate:
* subject: CN=*.corp.com.br
* start date: Mar 20 15:40:42 2018 GMT
* expire date: Jun 18 15:40:42 2018 GMT
* subjectAltName: host "chat.corp.com.br" matched cert's "*.corp.com.br"
* issuer: C=US; O=Let's Encrypt; CN=Let's Encrypt Authority X3
* SSL certificate verify ok.
> GET /websocket HTTP/1.1
> Host: chat.corp.com.br
> User-Agent: curl/7.54.0
> Accept: */*
> Connection: Upgrade
> Upgrade: websocket
> Origin: chat.corp.com.br
> Sec-WebSocket-Key: fVXESE8fjBMx8HheW0YlZQ==
> Sec-WebSocket-Version: 13
>
< HTTP/1.1 101 Switching Protocols
HTTP/1.1 101 Switching Protocols
< Upgrade: websocket
Upgrade: websocket
< Connection: Upgrade
Connection: Upgrade
< Sec-WebSocket-Accept: dyU1fPKS9c9nPGo2mPsrQv40G9E=
Sec-WebSocket-Accept: dyU1fPKS9c9nPGo2mPsrQv40G9E=

<
�{"server_id":"0"}
```

---

<div class="post-metadata">

**Author:** ![aaron.ogle](https://sea1.discourse-cdn.com/flex021/user_avatar/forums.rocket.chat/aaron.ogle/32/15_2.png) [@aaron.ogle](https://forums.rocket.chat/u/aaron.ogle)\
**Post date:** [May 31, 2018, 7:42pm UTC](https://forums.rocket.chat/t/rocket-chat-cannot-connect-ios/714/2 "2018-05-31T19:42:09Z")

</div>

Best I can tell websocket is working fine. Can you also access /api/info ? What version of Rocket.Chat?

---

<div class="post-metadata">

**Author:** ![paul](https://sea1.discourse-cdn.com/flex021/user_avatar/forums.rocket.chat/paul/32/259_2.png) [@paul](https://forums.rocket.chat/u/paul)\
**Post date:** [May 31, 2018, 8:00pm UTC](https://forums.rocket.chat/t/rocket-chat-cannot-connect-ios/714/3 "2018-05-31T20:00:11Z")

</div>

Yes, the output is:  
`{"version":"0.64.1","success":true}`

I am wondering if TLS 1.2 is required. The apache proxy only has TLS 1.0 enabled. Could this cause App Transport Security to not work?

---

<div class="post-metadata">

**Author:** ![rafael.kellermann](https://sea1.discourse-cdn.com/flex021/user_avatar/forums.rocket.chat/rafael.kellermann/32/783_2.png) [@rafael.kellermann](https://forums.rocket.chat/u/rafael.kellermann)\
**Post date:** [June 1, 2018, 12:32pm UTC](https://forums.rocket.chat/t/rocket-chat-cannot-connect-ios/714/4 "2018-06-01T12:32:56Z")

</div>

Hello @paul,

Yes, you figured that out. We require TLS 1.2 to access the application. Can you update it?

Thanks!

---

<div class="post-metadata">

**Author:** ![paul](https://sea1.discourse-cdn.com/flex021/user_avatar/forums.rocket.chat/paul/32/259_2.png) [@paul](https://forums.rocket.chat/u/paul)\
**Post date:** [June 1, 2018, 1:46pm UTC](https://forums.rocket.chat/t/rocket-chat-cannot-connect-ios/714/5 "2018-06-01T13:46:47Z")

</div>

Good to know. Unfortunately I can’t update the server, it might be easier to build an adhoc version of the app internally to deploy for now.

Thanks!
