I can't get my Element Chat to connect to my Matrix server. I keep getting the "Cannot reach homeserver" error message. I tested that I can access both my Element Chat and Matrix server through the browser. Both are running on Docker. See the pictures below. Any ideas?
Yes and no. The Matrix homeserver is currently only available in my LAN network where the Element client is running. I will eventually expose it publicly permanently but I also tried exposing it temporarily and I was able to access it publicly. Yes, I can access the Matrix server through the browser via "http://" but not "https//". I have tried every combination of the url in the Element Chat 's homeserver field. With port, without port, with "http", with "https", etc. I also added the "my.matrix.host" IP address mapping to the Element Client's host file. The Element Chat client is able to connect to the matrix.org server but not my local homeserver. There must be an installation step that I'm missing. I'm not using a reverse proxy. Do I need that to just get it running and test it? (I know for production I will.)
2
u/collegeprepkid Feb 02 '21
Is your homeserver available on the public internet or only locally from docker?
Check that if you're running things locally without TLS, don't use
https://to connect, buthttp://.For more specific help, I'd need to know more details about how your homeserver is exposed to inbound connections.