Cloudron makes it easy to run web apps like WordPress, Nextcloud, GitLab on your server. Find out more or install now.


Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Bookmarks
  • Search
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Brand Logo

Cloudron Forum

Apps | Demo | Docs | Install
  1. Cloudron Forum
  2. Matrix (Synapse/Element)
  3. Voice and Video Calls to device on different network not working

Voice and Video Calls to device on different network not working

Scheduled Pinned Locked Moved Matrix (Synapse/Element)
video callaudio callnot working
11 Posts 4 Posters 3.0k Views 4 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • K karthiceaswar

    so, i set up matrix synapse. chat room, messages all working. But when i try a 1 on 1 video call - *it works when both devices on same network(same home wifi). But when i try when one device is connected to a different network no success. Its stays at the connecting screen. I even opened all ports to all protocol in my vps's vnc subnet ( i am using oracle ubuntu instance - no firewall in ubuntu). What am i missing. I have been at it for more than two days. I thought the problem was with cloudflare and hence switched back to my domain providers dns NS. (haven't done federation yet) both chats are verified.

    nebulonN Offline
    nebulonN Offline
    nebulon
    Staff
    wrote on last edited by
    #2

    @karthiceaswar can you see any hints about webrtc/ICE in the app logs or browser console logs?
    I assume something does not work with connection negotiation.

    K 1 Reply Last reply
    0
    • K karthiceaswar

      so, i set up matrix synapse. chat room, messages all working. But when i try a 1 on 1 video call - *it works when both devices on same network(same home wifi). But when i try when one device is connected to a different network no success. Its stays at the connecting screen. I even opened all ports to all protocol in my vps's vnc subnet ( i am using oracle ubuntu instance - no firewall in ubuntu). What am i missing. I have been at it for more than two days. I thought the problem was with cloudflare and hence switched back to my domain providers dns NS. (haven't done federation yet) both chats are verified.

      BrutalBirdieB Offline
      BrutalBirdieB Offline
      BrutalBirdie
      Partner
      wrote on last edited by
      #3

      In Firefox you got about:webrtc where you can check webRTC connections for errors.
      Maybe check that and send the log and screenshots.

      Also in about:config you can set media.peerconnection.ice.relay_only to true to force the usage of the turn server.

      Like my work? Consider donating a drink. Cheers!

      K 2 Replies Last reply
      1
      • BrutalBirdieB BrutalBirdie

        In Firefox you got about:webrtc where you can check webRTC connections for errors.
        Maybe check that and send the log and screenshots.

        Also in about:config you can set media.peerconnection.ice.relay_only to true to force the usage of the turn server.

        K Offline
        K Offline
        karthiceaswar
        wrote on last edited by
        #4

        @brutalbirdie so it doesn't concern about my server setup ?

        1 Reply Last reply
        0
        • nebulonN nebulon

          @karthiceaswar can you see any hints about webrtc/ICE in the app logs or browser console logs?
          I assume something does not work with connection negotiation.

          K Offline
          K Offline
          karthiceaswar
          wrote on last edited by
          #5

          @nebulon How do i see it ?

          1 Reply Last reply
          0
          • BrutalBirdieB BrutalBirdie

            In Firefox you got about:webrtc where you can check webRTC connections for errors.
            Maybe check that and send the log and screenshots.

            Also in about:config you can set media.peerconnection.ice.relay_only to true to force the usage of the turn server.

            K Offline
            K Offline
            karthiceaswar
            wrote on last edited by
            #6

            @brutalbirdie my about:webrtc logs

            I couldn't make any of it.

            nebulonN 1 Reply Last reply
            0
            • K karthiceaswar

              @brutalbirdie my about:webrtc logs

              I couldn't make any of it.

              nebulonN Offline
              nebulonN Offline
              nebulon
              Staff
              wrote on last edited by
              #7

              @karthiceaswar from the logs it looks like it is unable to find a direct connection between the two clients for webrtc. In such a case it should fallback to using the turn server for relay but also that doesn't seem to work out.

              The turn server requires your firewall to be open for connections at 3478,5349 (udp and tcp) and a whole port range from 50000 to 51000 (udp)

              Maybe that is the issue?

              K 1 Reply Last reply
              0
              • nebulonN nebulon

                @karthiceaswar from the logs it looks like it is unable to find a direct connection between the two clients for webrtc. In such a case it should fallback to using the turn server for relay but also that doesn't seem to work out.

                The turn server requires your firewall to be open for connections at 3478,5349 (udp and tcp) and a whole port range from 50000 to 51000 (udp)

                Maybe that is the issue?

                K Offline
                K Offline
                karthiceaswar
                wrote on last edited by karthiceaswar
                #8

                @nebulon as for the firewall in my server i have opened up all ports and connection. Those ports are already open. Do I need to set port rule in Docker (is it actually possible) ?! This is my security list for the vnc rule. msedge_uJN7TSoa6R.png

                nebulonN 1 Reply Last reply
                0
                • K karthiceaswar

                  @nebulon as for the firewall in my server i have opened up all ports and connection. Those ports are already open. Do I need to set port rule in Docker (is it actually possible) ?! This is my security list for the vnc rule. msedge_uJN7TSoa6R.png

                  nebulonN Offline
                  nebulonN Offline
                  nebulon
                  Staff
                  wrote on last edited by
                  #9

                  @karthiceaswar Cloudron manages the server local firewall (iptables and docker rules) automatically, so you don't have to tweak the firewall of the server itself. I was more referring to any potential external firewall, but as you've mentioned this is all open as well.

                  To be honest, those webrtc issues are always hard to debug 😕

                  Have you tried to reach out to the upstream element developer community as well?

                  K 1 Reply Last reply
                  0
                  • nebulonN nebulon

                    @karthiceaswar Cloudron manages the server local firewall (iptables and docker rules) automatically, so you don't have to tweak the firewall of the server itself. I was more referring to any potential external firewall, but as you've mentioned this is all open as well.

                    To be honest, those webrtc issues are always hard to debug 😕

                    Have you tried to reach out to the upstream element developer community as well?

                    K Offline
                    K Offline
                    karthiceaswar
                    wrote on last edited by
                    #10

                    @nebulon Nope. I tried with different client too. But no success. Man....Its a bummer. I really need that 1 to 1 Video and audio calls to work. I even purged netfilter-persistent iptables-persistent. No success. It only works on same network. Anyway thanks for the effort.

                    1 Reply Last reply
                    0
                    • robiR Offline
                      robiR Offline
                      robi
                      wrote on last edited by
                      #11

                      If you can get logs from the client on the remote end of the call, it will tell you what's not connecting / failing.

                      Conscious tech

                      1 Reply Last reply
                      0
                      Reply
                      • Reply as topic
                      Log in to reply
                      • Oldest to Newest
                      • Newest to Oldest
                      • Most Votes


                      • Login

                      • Don't have an account? Register

                      • Login or register to search.
                      • First post
                        Last post
                      0
                      • Categories
                      • Recent
                      • Tags
                      • Popular
                      • Bookmarks
                      • Search