Visakh Vijayan
Posted on September 27, 2020
I hate wires. As simple as that. So if you are one among those people who do, follow this.
I use VSCode to debug my flutter apps. And lately, it has become too hectic with more and more wires coming up on the table. So here is what you do -
- Install adb platform tools. I have a Ubuntu 20.04 running hence I downloaded them from https://developer.android.com/studio/releases/platform-tools
- Add the adb file to your $PATH if you are on linux.
- Connect your device using a wire and run adb devices to see if it's detected.
- If not restart the adb by running adb kill-server and adb start-server.
- Remember to have USB Debugging on in your device.
- Run adb tcpip 5555. Your device will ask for permissions to connect.
- Once done, remove the USB.
- Connect your device to the same network as your machine.
- Find the IP address of your phone in the network. You can find it in "About Phone" usually.
- run adb connect "phone-ip":5555
- Done.
P.S. Throw away that wire.
Happy coding!
💖 💪 🙅 🚩
Visakh Vijayan
Posted on September 27, 2020
Join Our Newsletter. No Spam, Only the good stuff.
Sign up to receive the latest update from our blog.