element-hq / element-android

A Matrix collaboration client for Android.
https://element.io/
GNU Affero General Public License v3.0
3.34k stars 711 forks source link

Cannot connect to Local Network Matrix Server using HTTP #3280

Open bahamut657 opened 3 years ago

bahamut657 commented 3 years ago

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://.:, 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):

Additional context

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

Any-Fuel-5635 commented 2 years ago

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.

carolyn-f commented 1 year ago

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.

zinz-code commented 10 months ago

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.

mackerel225 commented 5 months ago

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

ForteDexe commented 2 months ago

Same issue, while my ios device is able to connect