# iOS Rocket.Chat+ app won't connect, but Android is fine

**URL:** <https://forums.rocket.chat/t/ios-rocket-chat-app-wont-connect-but-android-is-fine/190>\
**Category:** Mobile Apps\
**Created:** [February 7, 2018, 10:23am UTC](https://forums.rocket.chat/t/ios-rocket-chat-app-wont-connect-but-android-is-fine/190 "2018-02-07T10:23:08Z")\
**Posts on this page:** 9\
**Page:** 1

<div class="post-metadata">

**Author:** ![steve.smith](https://avatars.discourse-cdn.com/v4/letter/s/cdc98d/32.png) [@steve.smith](https://forums.rocket.chat/u/steve.smith)\
**Post date:** [February 7, 2018, 10:23am UTC](https://forums.rocket.chat/t/ios-rocket-chat-app-wont-connect-but-android-is-fine/190/1 "2018-02-07T10:23:08Z")

</div>

Hello all,

After a bit of help please. We’ve recently setup Rocket.Chat (0.61.0) via Docker on a Windows Server 2016 machine - using IIS to reverse proxy (websockets are enabled, and we’re using ARR 3.0).

We have a LetsEncrypt certificate on the server, and everything is working fine on all browsers that I’ve tested, and also the Android version of the Rocket.Chat+ app. I can see from the Chrome debugger that websockets seem to be working OK (no errors).

However, the iOS version of Rocket.Chat+ (tested on two devices) always reports “Could not connect to this server”.

If on the same device, I open the Url in Safari browser, everything works fine. Also, the old Cordova Rocket.Chat app works OK.

If I look in the IIS logs, I’m getting something like this when I attempt to connect:

- GET /api/v1/info 443 - {device IP} HTTP/2.0 Rocket.Chat/137+CFNetwork/893.14.2+Darwin/17.3.0 - 127.0.0.1:3000 200 0 0 91
- GET /websocket 443 - {device IP} HTTP/1.1 - - 127.0.0.1:3000 502 5 12152 90

It seems the second GET request is causing a 502 status code.

Is there some way to run the iOS app in debug mode so I can see what’s going on?

Related question - is the Rocket.Chat+ app likely to support SAML single sign-on at some point?

Thanks!

Steve.

---

<div class="post-metadata">

**Author:** ![steve.smith](https://avatars.discourse-cdn.com/v4/letter/s/cdc98d/32.png) [@steve.smith](https://forums.rocket.chat/u/steve.smith)\
**Post date:** [February 7, 2018, 5:30pm UTC](https://forums.rocket.chat/t/ios-rocket-chat-app-wont-connect-but-android-is-fine/190/2 "2018-02-07T17:30:00Z")

</div>

I managed to fix this myself after playing with it all day.

TL;DR … although it looked like websocket connections were being proxied correctly by IIS, they in fact weren’t working (being closed immediately). It was to do with not supporting compression, so I had to add a server variable to the rewrite request that set HTTP\_SEC\_WEBSOCKET\_EXTENSIONS to “”

Now I can use the iOS app 😃 Just waiting for that SAML support…

If anyone wants any tips on how to get this working using Docker on Windows Server, then I’m here…

---

<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:** [February 8, 2018, 5:59pm UTC](https://forums.rocket.chat/t/ios-rocket-chat-app-wont-connect-but-android-is-fine/190/3 "2018-02-08T17:59:47Z")

</div>

Glad you got it! I’m not too familiar with IIS. But my guess would have been related to websocket proxy. 🙂

If you have tips and feel like writing a bit. We definitely accept PRs to our docs repo: [GitHub - RocketChat/docs: The Rocket.Chat server, desktop, mobile, user, admin & developer documentation.](https://github.com/RocketChat/docs)

Docker on windows sounds like an excellent way to recommend installing Rocket.Chat when windows is a requirement.

---

<div class="post-metadata">

**Author:** ![Fleer](https://avatars.discourse-cdn.com/v4/letter/f/f17d59/32.png) [@Fleer](https://forums.rocket.chat/u/Fleer)\
**Post date:** [June 14, 2018, 5:02am UTC](https://forums.rocket.chat/t/ios-rocket-chat-app-wont-connect-but-android-is-fine/190/4 "2018-06-14T05:02:47Z")

</div>

@steve.smith I’d definitely be interested in picking your brain about installing on Windows Server 2016 more generally (I wasn’t sure of how to send a direct message on these forums).  
I’d also give a +1 vote for you to contribute to the documentation repo, if you had the time/inclination. 😀

---

<div class="post-metadata">

**Author:** ![steve.smith](https://avatars.discourse-cdn.com/v4/letter/s/cdc98d/32.png) [@steve.smith](https://forums.rocket.chat/u/steve.smith)\
**Post date:** [June 14, 2018, 8:07am UTC](https://forums.rocket.chat/t/ios-rocket-chat-app-wont-connect-but-android-is-fine/190/5 "2018-06-14T08:07:07Z")

</div>

Hello,

I ended up writing a quick blog post about it:

> **[Running Rocket.Chat on Docker using Windows Server 2016](https://umbracotips.blogspot.com/2018/02/running-rocketchat-on-docker-using.html)**
>
> My company has been experimenting with Instant Messaging systems.  Slack seemed to be the "go to" solution - but if you have a lot of users...

We still have it up and running, and I managed to upgrade it to the latest version the other day ([https://umbracotips.blogspot.com/2018/05/upgrading-rocketchat-in-docker-container.html](https://umbracotips.blogspot.com/2018/05/upgrading-rocketchat-in-docker-container.html)).

We’re still really only testing it at the moment, but it seems fairly stable.

Steve.

---

<div class="post-metadata">

**Author:** ![Fleer](https://avatars.discourse-cdn.com/v4/letter/f/f17d59/32.png) [@Fleer](https://forums.rocket.chat/u/Fleer)\
**Post date:** [June 21, 2018, 6:07am UTC](https://forums.rocket.chat/t/ios-rocket-chat-app-wont-connect-but-android-is-fine/190/6 "2018-06-21T06:07:06Z")

</div>

Amazing! Thanks for being so thorough - I’ll hopefully be able to take a look at implementing this in the next few weeks.

---

<div class="post-metadata">

**Author:** ![Fleer](https://avatars.discourse-cdn.com/v4/letter/f/f17d59/32.png) [@Fleer](https://forums.rocket.chat/u/Fleer)\
**Post date:** [July 10, 2018, 4:08am UTC](https://forums.rocket.chat/t/ios-rocket-chat-app-wont-connect-but-android-is-fine/190/7 "2018-07-10T04:08:02Z")

</div>

Hi Steve - just wondering if you might be able to share your docker-compose file for this setup?  
I’m new to all this, and am hitting a bit of a wall.

Cheers

---

<div class="post-metadata">

**Author:** ![steve.smith](https://avatars.discourse-cdn.com/v4/letter/s/cdc98d/32.png) [@steve.smith](https://forums.rocket.chat/u/steve.smith)\
**Post date:** [July 10, 2018, 7:29am UTC](https://forums.rocket.chat/t/ios-rocket-chat-app-wont-connect-but-android-is-fine/190/8 "2018-07-10T07:29:44Z")

</div>

I think its the standard one (I don’t remember changing anything)

db:  
image: mongo:3.0  
command: mongod --smallfiles --oplogSize 128

rocketchat:  
image: rocketchat/rocket.chat:latest  
environment:  
- PORT=3000  
- ROOT\_URL=http://docker:3000  
- MONGO\_URL=mongodb://db:27017/rocketchat  
links:  
- db:db  
ports:  
- 3000:3000

---

<div class="post-metadata">

**Author:** ![sking](https://avatars.discourse-cdn.com/v4/letter/s/8c91f0/32.png) [@sking](https://forums.rocket.chat/u/sking)\
**Post date:** [August 28, 2018, 10:53am UTC](https://forums.rocket.chat/t/ios-rocket-chat-app-wont-connect-but-android-is-fine/190/9 "2018-08-28T10:53:58Z")

</div>

can u post your iis web.config file , i am not config correct too.  
this is my

 ![image](https://us1.discourse-cdn.com/flex021/uploads/rocketchat/original/1X/a31143cc23e19b6d866ce2033cc25eb5d1a9e274.png)
