# Rocket Chat android app doesn't connect to rocket-chat server in non-standard port

**URL:** <https://forums.rocket.chat/t/rocket-chat-android-app-doesnt-connect-to-rocket-chat-server-in-non-standard-port/755>\
**Category:** Community Support\
**Created:** [May 10, 2018, 5:22pm UTC](https://forums.rocket.chat/t/rocket-chat-android-app-doesnt-connect-to-rocket-chat-server-in-non-standard-port/755 "2018-05-10T17:22:31Z")\
**Posts on this page:** 8\
**Page:** 1

<div class="post-metadata">

**Author:** ![Akronix](https://avatars.discourse-cdn.com/v4/letter/a/5f9b8f/32.png) [@Akronix](https://forums.rocket.chat/u/Akronix)\
**Post date:** [May 10, 2018, 5:22pm UTC](https://forums.rocket.chat/t/rocket-chat-android-app-doesnt-connect-to-rocket-chat-server-in-non-standard-port/755/1 "2018-05-10T17:22:31Z")

</div>

Hi.

I have a rocket-chat instance inside a virtual machine that has host port 60110 mapped to port 3000 in the virtual machine.

[http://my-url:60110](http://my-url:60110) does work in any desktop browser and in the desktop app, but it doesn’t work in the android app.

Note that I’m using http and not https.

In Rocket.Chat it gets stuck in the “Loading” animation forever.

In Rocket.Chat Cordova Legacy it says:

> Failed to connect to server: abort.abort

---

<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:** [June 4, 2018, 4:17am UTC](https://forums.rocket.chat/t/rocket-chat-android-app-doesnt-connect-to-rocket-chat-server-in-non-standard-port/755/2 "2018-06-04T04:17:51Z")

</div>

Moving this to Community Support. By Rocket.Chat Apps we actually refer to the Apps framework in Rocket.Chat.

Have you tried the non-legacy version?

---

<div class="post-metadata">

**Author:** ![Akronix](https://avatars.discourse-cdn.com/v4/letter/a/5f9b8f/32.png) [@Akronix](https://forums.rocket.chat/u/Akronix)\
**Post date:** [June 4, 2018, 10:06am UTC](https://forums.rocket.chat/t/rocket-chat-android-app-doesnt-connect-to-rocket-chat-server-in-non-standard-port/755/3 "2018-06-04T10:06:11Z")

</div>

> [@aaron.ogle](#):
>
> Have you tried the non-legacy version?

Yes, I have tried both.

---

<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 4, 2018, 12:23pm UTC](https://forums.rocket.chat/t/rocket-chat-android-app-doesnt-connect-to-rocket-chat-server-in-non-standard-port/755/4 "2018-06-04T12:23:18Z")

</div>

@Akronix I’m really sorry for the delay… can you try again on the native one? It should work with redirects now and custom ports.

Here’s the link to download: [https://play.google.com/store/apps/details?id=chat.rocket.android](https://play.google.com/store/apps/details?id=chat.rocket.android)

---

<div class="post-metadata">

**Author:** ![Akronix](https://avatars.discourse-cdn.com/v4/letter/a/5f9b8f/32.png) [@Akronix](https://forums.rocket.chat/u/Akronix)\
**Post date:** [June 4, 2018, 1:05pm UTC](https://forums.rocket.chat/t/rocket-chat-android-app-doesnt-connect-to-rocket-chat-server-in-non-standard-port/755/5 "2018-06-04T13:05:05Z")

</div>

I’m afraid I just set it up only in standards ports earlier today (80, 443) 🙁  
Maybe someone else can try it out?

---

<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 4, 2018, 3:45pm UTC](https://forums.rocket.chat/t/rocket-chat-android-app-doesnt-connect-to-rocket-chat-server-in-non-standard-port/755/6 "2018-06-04T15:45:51Z")

</div>

Did it work fine to you?

---

<div class="post-metadata">

**Author:** ![Akronix](https://avatars.discourse-cdn.com/v4/letter/a/5f9b8f/32.png) [@Akronix](https://forums.rocket.chat/u/Akronix)\
**Post date:** [June 6, 2018, 12:58pm UTC](https://forums.rocket.chat/t/rocket-chat-android-app-doesnt-connect-to-rocket-chat-server-in-non-standard-port/755/7 "2018-06-06T12:58:21Z")

</div>

I can’t try it because we aren’t using nonstandard ports anymore. I’m sorry.

---

<div class="post-metadata">

**Author:** ![gstlouis](https://avatars.discourse-cdn.com/v4/letter/g/e36b37/32.png) [@gstlouis](https://forums.rocket.chat/u/gstlouis)\
**Post date:** [June 19, 2019, 3:40pm UTC](https://forums.rocket.chat/t/rocket-chat-android-app-doesnt-connect-to-rocket-chat-server-in-non-standard-port/755/8 "2019-06-19T15:40:17Z")

</div>

I fell into this problem. serving rocket on port 3901. When I downloaded the app from the link on post #4 it does not look to work. I am using blackberry android

However, I have someone that used their android on Samsung a8 and she says it worked and she is chatting me from her phone. She entered the port number and switch from https:// to http://

the only difference between me and her is the phone and that I am inside the network I am hosting this from, even though I am putting in the public URL:3901 it just seems to keep looking, minutes later I get error occurred

**UPDATE:**  
I can confirm that it works. I had to change my public URL to my internal IP if I want to connect this within my network. But outside I’m confident it should work as someone tried and she got in.

s should be good to go!
