element-android icon indicating copy to clipboard operation
element-android copied to clipboard

Cannot connect to Local Network Matrix Server using HTTP

Open bahamut657 opened this issue 3 years ago • 5 comments

Describe the bug

After installing Element APP on Android 11, I started the APP and try to configure my local Matrix server using WIFI connection. I fill the Server Address field with http://<MATRIX_LAN_HOST>.<LAN_DOMAIN>:<MATRIX_SERVER_PORT>, but it results in this message: "No network. Check your Internet connection".
If I poweroff Wifi it seems to work (I got another error message using the same address), but my LAN has Internet working.

Using the same parameter from RIOT Web client works correctly

To Reproduce

Steps to reproduce the behavior:

  1. Connect WIFI
  2. Start clean instance of Element APP
  3. Select "Other" from Server Selection Menu
  4. Fill address field with the local Matrix server address
  5. The error appears: "No network. Check your Internet connection."

Expected behavior

Connect to the local server without issues

Screenshots

If applicable, add screenshots to help explain your problem.

Smartphone (please complete the following information):

  • Device: Cubot QUEST
  • OS: Andorid 11

Additional context

  • 1.1.6 - Google Play Store
  • Homeserver: http://matrixhost.lan:8448
  • riot-web: 1.6.2
  • olm: 3.1.3

Using the Mobile Data Connection seems to work (without reaching the address because it is in my LAN).

bahamut657 avatar May 05 '21 09:05 bahamut657

I need help on this issue as well. I don't want to set up an entire SSL setup to try this app out. Works fine locally on my iOS device with http.

Any-Fuel-5635 avatar Jul 29 '22 20:07 Any-Fuel-5635

I have the same issue with Element Android. I downloaded PingTools from Google Play, attached to WiFi, and could successfully ping the IP of the Matrix Synapse server. Element Android displays "No network. Check your Internet connection" when same IP (with port) is typed as server URL.

carolyn-f avatar Dec 13 '22 16:12 carolyn-f

Running into the same problem with the android app. The windows desktop app works fine with the correct url, Just wanted an easy offline Setup for a theater performance where messages are sent live on stage. Obviously in this situation the whole wifi network is not connected to the Internet, so http is totally fine for this scenario.

zinz-code avatar Dec 10 '23 00:12 zinz-code

confirm this is happening for android app, unable to specify localhost, but on website it works fine

mackerel225 avatar May 05 '24 13:05 mackerel225

Same issue, while my ios device is able to connect

ForteDexe avatar Jul 25 '24 18:07 ForteDexe