aakash-pamnani / ADB-QR

A vscode extension to connect your android phone wirelessly to PC.
https://marketplace.visualstudio.com/items?itemName=AakashP.adb-qr
MIT License
19 stars 2 forks source link

ADB-QR: Invalid port while parsing address #10

Closed zanovis closed 8 months ago

zanovis commented 1 year ago

Getting this error when trying to connect via QR/Pairing Code on Windows 10. System ENV variable set for ADB

aakash-pamnani commented 1 year ago

Can you share the adb version you have installed and android version of your device.

zanovis commented 1 year ago

Android Debug Bridge version 1.0.41 Version 34.0.4-10411341

Safius-Sifat commented 11 months ago

Hey, I am also facing the same issue. My adb version-- Android Debug Bridge version 1.0.41 Version 34.0.4-10411341

aakash-pamnani commented 11 months ago

open vscode > ctrl+shift+p > "Developer: Toggle Developer Tools"

Then try to connect with QR/Pairing code

After the error, Share the logs from the developer console window.

gokuls1999 commented 11 months ago
image

Iam also getting same issue. I am trying to connect using pair code. Here is the log from developer console

aakash-pamnani commented 11 months ago

@gokuls1999 thanks for sharing logs, The problem is due to ipv6 address, This may be due to your mobile data is turned on or your wifi router is using ipv6?

JVimes commented 10 months ago

@aakash-pamnani Can you parse or skip the v6 address?

aakash-pamnani commented 10 months ago

@aakash-pamnani Can you parse or skip the v6 address?

Yes I am working on it, but it will take some time.

legallyfree commented 9 months ago

Hello,

What I do is deactivate the Firewalld that my Arch Linux system has, Then I turn on the wireless treatment plant, active the link with synchronization code, Then in console outside the vscode I write: > adb pair 192.168.xx.xxx:port 463604 then from vscode I use the extension ADB QR Connect with Paired Devices Only in this way, it connects, With the Firewalld, try to open the ports that ADB uses from version 11 with the range 30000-4999, > sudo firewall-cmd --add-port=30000-49999/tcp --permanent But it doesn't work for me and the easy way is to stop the Firewalld. Something that never worked for me is with the QR, With the Firewalld deactivated inclusive. Then I see that my problem is the Firewalld but I do not know how to solve it and just stopping it I can connect it. So the extension works correctly and is the configuration of each distribution with its safety is what makes it fail when connecting. Some tried to deactivate your firewall, surely with UFW that is easier is more permissive with connections 🤔

Now updated my area home and without closing the Firewalld it connects normally, it was previously as a public area 🥲

aakash-pamnani commented 8 months ago

@zanovis @Safius-Sifat @gokuls1999 @JVimes update to latest version and let me know if the problem still persist.

JVimes commented 8 months ago

@aakash-pamnani I don't get "invalid port" today, thank you!