UBports Robot Logo UBports Forum
    • Categories
    • Recent
    • Tags
    • Popular
    • Users
    • Groups
    • Search
    • Register
    • Login

    Waydroid: no internet inside

    Scheduled Pinned Locked Moved Waydroid
    12 Posts 6 Posters 4.0k Views 2 Watching
    Loading More Posts
    • 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.
    • R Offline
      readyblue @sven
      last edited by readyblue

      @sven +1, same issue

      checking from sudo waydroid shell, ip is added correctly, also it can reach outside world, still apps inside does not have internet connectivity

      checking waydroid log, no issue found there

      S 1 Reply Last reply Reply Quote 0
      • S Offline
        sven @readyblue
        last edited by

        Thanks for your feedback. Maybe it is this issue? https://github.com/waydroid/waydroid/issues/1958

        VollaPhone22 (dual-boot of VollaOS and UT 20.04 OTA-9), Pocophone F1 (pmOS, edge), FLX1 (Debian)

        S 1 Reply Last reply Reply Quote 0
        • S Offline
          sven @sven
          last edited by

          The issue has been fixed and after a new installation I have internet inside waydroid.

          VollaPhone22 (dual-boot of VollaOS and UT 20.04 OTA-9), Pocophone F1 (pmOS, edge), FLX1 (Debian)

          M 1 Reply Last reply Reply Quote 0
          • S sven referenced this topic on
          • M Offline
            malditobastardo @sven
            last edited by

            For those experiencing this issue and running out of ideas, I was able to solve it by disabling rp_filter.

            MoemM 1 Reply Last reply Reply Quote 0
            • MoemM Offline
              Moem @malditobastardo
              last edited by Moem

              @malditobastardo That's great. How does one do that, please?

              Is currently using an Op5t
              Also owns an Op1, a BQ E4.5 and an Xperia X, as well as a BQ tablet and a Pinetab2. Please, someone... make it stop.

              M 1 Reply Last reply Reply Quote 0
              • M Offline
                malditobastardo @Moem
                last edited by malditobastardo

                @Moem in my case there were two things I had to adjust to fix this permanently. You will need to use adb/ssh to access your device. Run waydroid (either by cli or by opening waydroid).

                1. captive portal issue

                inside the container first check if you can at least ping :

                sudo waydroid shell
                ping 8.8.8.8
                ping google.com
                

                If this works but you still don't have access to internet inside the apps, run the following command:

                dumpsys connectivity | grep "VALIDATED"
                

                In case the output shows nothing, then it's an issue with android captive portal.

                1. rp_filter dropping packages
                sudo waydroid shell
                cat /proc/sys/net/ipv4/conf/eth0/rp_filter
                cat /proc/sys/net/ipv4/conf/all/rp_filter
                

                if the output is not 0, then you can try applying the following:

                echo 0 > /proc/sys/net/ipv4/conf/eth0/rp_filter
                echo 0 > /proc/sys/net/ipv4/conf/all/rp_filter
                

                test if this fixed the issue:

                ping 8.8.8.8
                ping google.com
                

                These are just temporary changes that would help to see if you are experiencing the same issues as me, so don't worry about running these commands because they will not persist after re-launching the app again. In case we identify one (or both) as potential issues. We can try to apply the fixes permanently.

                MoemM 1 Reply Last reply Reply Quote 0
                • MoemM Offline
                  Moem @malditobastardo
                  last edited by

                  @malditobastardo Thank you! I'll look into this. I appreciate your time and effort!

                  Is currently using an Op5t
                  Also owns an Op1, a BQ E4.5 and an Xperia X, as well as a BQ tablet and a Pinetab2. Please, someone... make it stop.

                  M 1 Reply Last reply Reply Quote 1
                  • M Offline
                    malditobastardo @Moem
                    last edited by

                    @Moem You are welcome, hopefully this can help with your issue 🙂

                    I 1 Reply Last reply Reply Quote 0
                    • I Offline
                      imparfaitinconnu @malditobastardo
                      last edited by

                      @malditobastardo

                      Hello,
                      I'm having the same issue on the OP5 / OP5T.
                      So I tried the “rp_filter” solution :

                      echo 0 > /proc/sys/net/ipv4/conf/eth0/rp_filter
                      echo 0 > /proc/sys/net/ipv4/conf/all/rp_filter
                      

                      That fixed the problem.
                      Could you please tell me how to fix this issue permanently?
                      Thanks in advance.

                      M 1 Reply Last reply Reply Quote 0
                      • M Offline
                        malditobastardo @imparfaitinconnu
                        last edited by

                        @imparfaitinconnu do you have adb/ssh access to your device? If so, do you know how to make the system image writable?

                        1 Reply Last reply Reply Quote 0

                        Hello! It looks like you're interested in this conversation, but you don't have an account yet.

                        Getting fed up of having to scroll through the same posts each visit? When you register for an account, you'll always come back to exactly where you were before, and choose to be notified of new replies (either via email, or push notification). You'll also be able to save bookmarks and upvote posts to show your appreciation to other community members.

                        With your input, this post could be even better đź’—

                        Register Login
                        • First post
                          Last post