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

    Waydroid: no internet inside

    Scheduled Pinned Locked Moved Waydroid
    10 Posts 5 Posters 3.7k 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.
    • S Offline
      sven
      last edited by sven

      I tried Waydroid on a VollaPhone22 (Focal) after some years, so please be patient. How can I get Internet connectivity inside Waydroid (probably sharing the one from Ubuntu)?

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

      K R 2 Replies Last reply Reply Quote 0
      • K Offline
        Ken1971 @sven
        last edited by

        @sven hi, I believe it is the Ubuntu touch element that provides wife and mobile provider internet. I don't touch any settings within waydroid itself.

        I'm running Ubuntu Touch 24.04 version 280. Waydroid runs excellently......

        1 Reply Last reply Reply Quote 0
        • 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 🙂

                        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