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

    Wrong network selected

    Scheduled Pinned Locked Moved Unsolved Support
    31 Posts 7 Posters 5.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.
      • arubislanderA Offline
        arubislander @MrT10001
        last edited by

        @mrt10001 I don't see how that would change anything. An IP address is only assigned after connecting.

        πŸ‡¦πŸ‡Ό πŸ‡³πŸ‡± πŸ‡ΊπŸ‡Έ πŸ‡ͺπŸ‡Έ
        Happily running Ubuntu Touch
        Google Pixel 3a (20.04 DEV)
        JingPad (24.04 preview)
        Meizu Pro 5 (16.04 DEV)

        1 Reply Last reply Reply Quote 0
        • BollyB Offline
          Bolly
          last edited by

          I don't get it. It shouldn't connect to a wifi that has never connected. Unless it has the same SSID (name).

          Does it have the same SSID (name)?

          2015-Now (Daily use) : BQ Aquaris E4.5 Ubuntu edition
          2016-Now (Daily use) : BQ Aquaris M10 FHD Betatester

          2020-Now : PinePhone Braveheart & CE UBports
          2020-Now (Family/Daily use): Vollaphone Xenial
          2022-Now (Family/Daily use): Vollaphone 22 Focal

          1 Reply Last reply Reply Quote 0
          • M Offline
            mark1250
            last edited by

            @cliffcoggin please correct me if i have gotten the details wrong.

            The phone has been connected to your WiFi access point. You have entered and saved the WiFi access point's password in the phone.

            Now, on occasion (1 time out of 10 of leaving and returning to the WiFi access point's coverage range) the phone does not auto-connect to your WiFi access point.

            On the occasions when the phone doesn't auto-connect to your WiFi access point, the neighbor's access point as well as your access point are listed in the available access points when the WiFi menu is opened. To connect to your WiFi access point, you just select it from the WiFi menu and the phone connects.

            Is this what is happening?

            C 1 Reply Last reply Reply Quote 0
            • C Offline
              cliffcoggin @mark1250
              last edited by

              @mark1250 said in Wrong network selected:

              @cliffcoggin please correct me if i have gotten the details wrong.

              The phone has been connected to your WiFi access point. You have entered and saved the WiFi access point's password in the phone.

              Now, on occasion (1 time out of 10 of leaving and returning to the WiFi access point's coverage range) the phone does not auto-connect to your WiFi access point.

              On the occasions when the phone doesn't auto-connect to your WiFi access point, the neighbor's access point as well as your access point are listed in the available access points when the WiFi menu is opened. To connect to your WiFi access point, you just select it from the WiFi menu and the phone connects.

              Is this what is happening?

              Yes indeed. Correct on all points.

              1 Reply Last reply Reply Quote 0
              • M Offline
                mark1250
                last edited by

                @cliffcoggin

                You should open a bug report here .

                Is your WiFi access point using 2.4 GHz or 5 GHz? I see 1 issue where Dalton states that the Nexus 5 has some issue with 5 GHz - although that bug report is about connecting not auto-connect.

                1 Reply Last reply Reply Quote 0
                • Br1B Offline
                  Br1 @cliffcoggin
                  last edited by

                  @cliffcoggin

                  • mount root in rw mode
                    sudo mount -o remount,rw /

                  • sudo nano /etc/NetworkManager/system-connections/neighbour's_network

                  • add autoconnect=false in [connection] section

                  • restore root in ro mode
                    sudo mount -o remount,ro /

                  it will work πŸ™‚

                  ^

                  • Google Pixel 3a XL
                  • Xiaomi MI A2
                  C 1 Reply Last reply Reply Quote 0
                  • C Offline
                    cliffcoggin @Br1
                    last edited by

                    @br1 I don't really understand what any of that means, so clearly too risky for me to attempt.

                    I plan to submit a bug report as Mark1250 suggested if and when I can find my way aroung Github, which is as clear as mud at the moment.

                    KenedaK 1 Reply Last reply Reply Quote 0
                    • KenedaK Offline
                      Keneda @cliffcoggin
                      last edited by Keneda

                      @cliffcoggin said in Wrong network selected:

                      I don't really understand what any of that means

                      Those are terminal command lines to edit the config file named as, and associated with, your neighbour SSID to prevent it from autoconnect.

                      It's a workaround untill issue is fixed. :

                      "What is nano ?"

                      Here i opened my box ssid file (edited so that no private infos appears here lol) :
                      screenshot20220809_014829821.png

                      Now the same file with the additional autoconnect line :
                      screenshot20220809_015646049.png

                      I'm a quite total noob, so if i did it, you can do it ^^

                      @br1 thank you for making me discover nano lol

                      2015-2023 : Meizu MX4 ☠️⚰️✝️
                      2023-2024 : Nexus 5 ☠️⚰️✝️
                      2024-***** : FPOS Fairphone 5 waiting UT for freedom πŸ˜‰
                      πŸ‡²πŸ‡«πŸ‡¬πŸ‡§

                      1 Reply Last reply Reply Quote 0
                      • C Offline
                        cliffcoggin
                        last edited by

                        Thanks for your efforts to help me fellows, I truly appreciate it, but the risks involved are too great for my liking. I am bound to make a mistake typing all those characters on the tiny keyboard and screen and screw up my phone, so I think it better if I just accept the occassional irritation of having to force the phone onto the correct network.

                        MrT10001M 1 Reply Last reply Reply Quote 0
                        • MrT10001M Offline
                          MrT10001 @cliffcoggin
                          last edited by

                          @cliffcoggin Just for your info, my android main phone keeps connecting to my weaker slower Wi-Fi network and I cannot stop it!

                          Xiaomi Redmi Note 7.... And more...
                          I have too many devices...

                          C 1 Reply Last reply Reply Quote 0
                          • C Offline
                            cliffcoggin @MrT10001
                            last edited by

                            @mrt10001 How odd. That suggests it is not a UT problem, but may be inherent to some Android phones, yet I have seen no mention of it elsewhere.

                            1 Reply Last reply Reply Quote 0
                            • Br1B Offline
                              Br1
                              last edited by

                              @keneda if you liked nano maybe you will also like Shell access via SSH, it's very confortable, I couldn't do without it, look here

                              ^

                              • Google Pixel 3a XL
                              • Xiaomi MI A2
                              KenedaK MrT10001M 2 Replies Last reply Reply Quote 0
                              • KenedaK Offline
                                Keneda @Br1
                                last edited by Keneda

                                @br1 i liked nano because it's simplier than my previous method to edit system files locally on phone ^^

                                Sure i'll use shell ssh access one day, i already heard about it, but that'll be in some futur lol.

                                Thanks anyway πŸ˜‰

                                2015-2023 : Meizu MX4 ☠️⚰️✝️
                                2023-2024 : Nexus 5 ☠️⚰️✝️
                                2024-***** : FPOS Fairphone 5 waiting UT for freedom πŸ˜‰
                                πŸ‡²πŸ‡«πŸ‡¬πŸ‡§

                                1 Reply Last reply Reply Quote 0
                                • MrT10001M Offline
                                  MrT10001 @Br1
                                  last edited by

                                  @br1 SSH is a pain on the devices, I usually get a port not available issue, timeouts or access denied.

                                  Xiaomi Redmi Note 7.... And more...
                                  I have too many devices...

                                  Br1B 1 Reply Last reply Reply Quote 0
                                  • Br1B Offline
                                    Br1 @MrT10001
                                    last edited by Br1

                                    @mrt10001 SSH works very well, you have to put the service in autostart (*) and set the static ip for your device on your wifi ... otherwise - every time - you have to check service status, if necessary start it manually (sudo service ssh start - or - sudo android-gadget- service enable ssh) and check the ip of your device (with hostname -I)

                                    (*) when the phone restarts SSH is not running

                                    ^

                                    • Google Pixel 3a XL
                                    • Xiaomi MI A2
                                    MrT10001M 1 Reply Last reply Reply Quote 0
                                    • MrT10001M Offline
                                      MrT10001 @Br1
                                      last edited by

                                      @br1 The router keeps the IP static, it's generally the annoying port issue, which when I try and open, remains in an unusable state!

                                      Xiaomi Redmi Note 7.... And more...
                                      I have too many devices...

                                      Br1B 1 Reply Last reply Reply Quote 0
                                      • Br1B Offline
                                        Br1 @MrT10001
                                        last edited by

                                        @mrt10001 I did not understand if it sometimes works or it never worked ... however we have got a bit OT, maybe it is appropriate to open a new topic

                                        ^

                                        • Google Pixel 3a XL
                                        • Xiaomi MI A2
                                        MrT10001M 1 Reply Last reply Reply Quote 0
                                        • MrT10001M Offline
                                          MrT10001 @Br1
                                          last edited by

                                          @br1 You are right. I will do when I need help with it. I rarely SSH into the devices anyway.

                                          Xiaomi Redmi Note 7.... And more...
                                          I have too many devices...

                                          1 Reply Last reply Reply Quote 0
                                          • C cliffcoggin referenced this topic on
                                          • First post
                                            Last post