element-hq / element-hq/element-android

Connectivity to the server has been lost when using mobile data

Open
#8,685 1 comment 0 reactions 0 assignees View on GitHub
T-Defect X-Needs-Info
Dominant language
Kotlin
Stars
3.7k
Forks
917
PR merge metrics
No merged PRs in 30d

Description

### Steps to reproduce

1. Connect to a local network over WiFi.
2. Launch Element. Observe if it can connect to the server.
3. Switch connection to mobile data. Observe if it can connect to the server.
4. Force stop Element.
5. Launch Element again. Observe if it can connect to the server.
6. Enable WiFi tethering.
7. Connect to the WiFi network using a PC.
8. Launch Element Web on the PC. Observe if it can connect to the server.

### Outcome

#### What did you expect?

Element connects to the server both via the local network and mobile data.

#### What happened instead?

Element connects to the server over the local network, but does not connect to it over mobile data, showing the error "Connectivity to the server has been lost". Restarting doesn't fix the issue. Element Web connects to the server over mobile data shared to the PC via tethering. The connection otherwise works.

![Screenshot_20231116-104211_Element](https://github.com/vector-im/element-android/assets/33988779/59ec6921-1ca0-4fae-81bf-fd31954823eb)

![Screenshot_20231116-104124_Element](https://github.com/vector-im/element-android/assets/33988779/c2c8ef03-9936-4304-a355-91f16d3846a3)

### Your phone model

Samsung Galaxy S5

### Operating system version

Android 11 (LineageOS 18.1)

### Application version and app store

1.6.6 from F-Droid

### Homeserver

matrix.org

### Will you send logs?

Yes

### Are you willing to provide a PR?

No

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.