Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fixed IP shown as '0.0.0.0' when using hotspot instead of WLAN #25

Merged
merged 4 commits into from
Mar 23, 2022

Conversation

alexVinarskis
Copy link
Contributor

Issue: when not connected to WiFi, and using Hotspot/AP instead, it was possible to connect to phone, however WADB would show '0.0.0.0' as IP. It was required to identify default gateway from computer, and use that IP address to connect.

Solution: use root shell to pull IP address of AP device. Iff no there is no WLAN connection (0.0.0.0 was about to be shown), default gateway of AP is shown instead (if any)

Bonus: altered app's interface to display both WLAN and AP IPs, if both are available (notification and tile still still show WLAN only, otherwise fallback to AP)

Tested on Pixel 5 Android 12L.

@haruue haruue merged commit 4d96082 into RikkaApps:master Mar 23, 2022
@haruue
Copy link
Member

haruue commented Mar 23, 2022

Great idea & LGTM.
Thank you for this pull request.

haruue added a commit that referenced this pull request Mar 25, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants