Bug 421186 - Android and Plasma is not communicating on phone's portable WiFi HOTSPOT
Summary: Android and Plasma is not communicating on phone's portable WiFi HOTSPOT
Status: REPORTED
Alias: None
Product: kdeconnect
Classification: Applications
Component: android-application (show other bugs)
Version: unspecified
Platform: Android Android 10.x
: NOR normal
Target Milestone: ---
Assignee: Albert Vaca Cintora
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2020-05-08 13:57 UTC by Durrani
Modified: 2024-03-20 17:10 UTC (History)
5 users (show)

See Also:
Latest Commit:
Version Fixed In:


Attachments
Check the "You're not connected to a WiFi" message (134.89 KB, image/png)
2020-05-08 13:57 UTC, Durrani
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Durrani 2020-05-08 13:57:59 UTC
Created attachment 128254 [details]
Check the "You're not connected to a WiFi" message

SUMMARY
Android and Plasma is not communicating on phone's portable WiFi HOTSPOT

STEPS TO REPRODUCE
1. Turn on portable WiFi hotspot feature on your android device.
2. Connect your KDE Plasma device to the android's WiFi hotspot.
3. Open up kde Connect on android device and you will see the message.
"You're not connected to a WiFi network, so you may not be able to see any devices. Click here to enable Wi-Fi"


OBSERVED RESULT
Linux host and android client do not communicate on portable WiFi hotspot but instead work on WiFi.

EXPECTED RESULT
Both should communicate on external WiFi device as well as using portable WiFi hotspot just like in previous version of KDE Connect Android.

Android Versions:
KDE Connect: 1.14.2
Android: 8.1.0 (Oreo)
Kernel: 3.10.73-g309d642
Device: Nexus 6P

SOFTWARE/OS VERSIONS
Kernel: 5.3.0-51-generic
Linux/KDE neon: 5.18
KDE Plasma Version: 5.18.5
KDE Frameworks Version: 5.69.0
Qt Version: 5.14.2


ADDITIONAL INFORMATION
Comment 1 Anjani Kumar 2020-05-24 17:57:36 UTC
(In reply to Durrani from comment #0)
> Created attachment 128254 [details]
> Check the "You're not connected to a WiFi" message
> 
> SUMMARY
> Android and Plasma is not communicating on phone's portable WiFi HOTSPOT
> 
> STEPS TO REPRODUCE
> 1. Turn on portable WiFi hotspot feature on your android device.
> 2. Connect your KDE Plasma device to the android's WiFi hotspot.
> 3. Open up kde Connect on android device and you will see the message.
> "You're not connected to a WiFi network, so you may not be able to see any
> devices. Click here to enable Wi-Fi"
> 
> 
> OBSERVED RESULT
> Linux host and android client do not communicate on portable WiFi hotspot
> but instead work on WiFi.
> 
> EXPECTED RESULT
> Both should communicate on external WiFi device as well as using portable
> WiFi hotspot just like in previous version of KDE Connect Android.
> 
> Android Versions:
> KDE Connect: 1.14.2
> Android: 8.1.0 (Oreo)
> Kernel: 3.10.73-g309d642
> Device: Nexus 6P
> 
> SOFTWARE/OS VERSIONS
> Kernel: 5.3.0-51-generic
> Linux/KDE neon: 5.18
> KDE Plasma Version: 5.18.5
> KDE Frameworks Version: 5.69.0
> Qt Version: 5.14.2
> 
> 
> ADDITIONAL INFORMATION

What happens on the desktop side? Can you see your device from the kdeconnect desktop app? This seems weird. KDEConnect works from phone hotspot as well.
Comment 2 Durrani 2020-05-25 13:05:56 UTC
On desktop it says, no paired devices available.
Comment 3 Anjani Kumar 2020-05-25 18:44:58 UTC
(In reply to Durrani from comment #2)
> On desktop it says, no paired devices available.

Can you add your desktop IP in phone manually? Does it work?
Comment 4 Durrani 2020-05-27 21:10:21 UTC
Okay, For some reason it started working. May be the plasma or the app got updated. I didn't noticed when did this happen as my systems are daily auto updated.
Comment 5 Benedict 2020-08-27 22:11:33 UTC
"You're not connected to a WiFi network" also happens to me on the KDE Connect application. This does _not_ happen when the Android is connected using USB tethering, only on WiFi tethering.

Another KDE Connect Android can connect to the desktop, but the KDE Connect on the WiFi broadcasting / hotspotting phone cannot connect, showing the aforementioned error message. 

Tried adding desktop IP address to the mobile app, it's on the custom device list, it still doesn't not work after refreshing (same "you're not connected to a WiFi network" message.

Issue is replicated when the WiFi broadcasting phone is switched.

KDE Connect version: 1.4.0 (desktop client)
KDE Connect Android version: 1.14.2 (Android 9, Xiaomi Mi6 and Android 10, Samsung Note 20)
Comment 6 Benedict 2020-08-27 22:25:32 UTC
I've checked the source code at https://invent.kde.org/network/kdeconnect-android 

Upon quick text search, I didn't found any reference to WIFI_AP_STATE string, and the manifest does not include <action android:name="android.net.wifi.WIFI_AP_STATE_CHANGED" /> receiver.

This almost certainly tells that the android app isn't detecting status of WiFi hotspot, thus disabling the service as if the phone is not connected to wifi at all.

Sorry I have no Android/Java background, I wish I can help further... (just a flutter beginner here)
Comment 7 Rossen Karpuzov 2024-03-20 17:10:30 UTC
On my side I have no success with any type of thertering/hotspot - Wi-Fi, Bluetooth or USB

MIUI version 12.0.5.0 (Android 10)
KDE connect: 1.29.0 (android app); kdeconnect-kde-23.04.1-1.mga9