Skip to content

Android app can't connect if server isn't listening on IPv6 #24703

Open
mattermost/mattermost-mobile
#8571
@mattermod

Description

@mattermod

https://github.com/mattermost/mattermost-mobile/issues/7576

We recently had the same issue as @n-gao in #6643 (comment)_ – The only thing we saw was that the Android app was having trouble most of the time, while all other apps as well as web browsers (even on Android) did not have any issue, and the only message we got was "failed to connect". This made it pretty hard to debug.

Debian 11 currently has a docker version (20.10.5) which only publishes IPv4 addresses when publishing a port globally (the related GitHub issue can be found here). This means that this faulty configuration could easily be deployed by anyone using Mattermost's official docker installation guide on a Debian 11 server with nginx.

It appears that the iOS app, the Desktop app, as well as web browsers will retry the connection on IPv4 if IPv6 fails, but the Android app doesn't. Hence, the connection issue only in the Android app, and only when it's inside an IPv6-enabled network.

I suggest fixing this issue in the Android app, and until then, adding this to the debugging guideline


If you're interested please comment here and come join our "Contributors" community channel on our daily build server, where you can discuss questions with community members and the Mattermost core team. For technical advice or questions, please join our "Developers" community channel.

New contributors please see our Developer's Guide.

JIRA: https://mattermost.atlassian.net/browse/MM-54703

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions