Android WiFi ADB outside local network - android

ADB via WiFi works grat, but up today I've used it only in local network.
I've tried to use it outside my network but ADB was unable to connect
Can it be used outside local network? How?

Related

Is it possible to connect to any android device on the same network over wifi using adb command?

Is it possible to connect and access to any android device on the same network over wifi using adb command:
adb connect
If phone is rooted then its possible. Otherwise you have to use 3rd party application for that.

Can't use adb when connected to VPN

My PC and Android TV device are in the same net section,so I can use adb connect the debugging device.Also ,I use adb devices command,it shows device on work.But when My PC and device use the same vpn based on the previous internet,I try to ping the device IP,it worked,then I use adb connect the device,it shows connect,but when input adb devices command , it shows device offline. I'm sure the error can't be caused by adb version,for it can work when disconnect the vpn.who can help me? I'm very appreciate for that.
If your PC and device are on the same LOCAL network, all you need to do is find the local IP address of the device (something like: 192.168.xx.xx). Then type:
adb disconnect
adb connect 192.168.xx.xx.
It'll connect again. Works for me.
The only time it does not work is when the device is the one providing the LOCAL network, e.g., your phone's mobile Hotspot. Using a VPN like this does not work directly. Whenever you use a VPN and try using ADB for a mobile hotspot (and the hotspot device is the one you're trying to connect to), you'll realize that the device goes offline.
This is because when you enter "adb connect <REMOTE_HOST>", your PC tries to route your device IP (REMOTE_HOST) via the VPN network, which will not be accessible since your ISP does not allow inbound connections to your device.
An alternative option, which I use for my device (Phone), is to use a wired connection to my PC via a USB cable. It might work for the Android TV if the proximity b/w TV and your laptop is not a problem.
Another alternative (supposing you're trying to connect a phone/Android TV) is to use another phone or router to create a hotspot. Then connect both your PC and phone/Android TV to the hotspot. Find the phone/Android TV IP address 192.168.xx.xx and enter:
adb connect 192.168.xx.xx.

ADB over bluetooth?

Is it possible to connect to ADB over bluetooth?
I am trying to test 3G data download, but want to have ability to connect to ADB without using USB. Using WiFi (local only) and 3G, as understand, will not work because Android will still use WiFi for downloads (even that WiFi is local only, no outside exit).
How can I set up connection to ADB over bluetooth to send ADB commands for Android device to execute?
I have seen people post that they have been able to do it just like with WiFi using Bluetooth tethering. You'll need to find your IP address.

connect to Wifi device and Internet at the same time

I use smartphone directly connect to AR.Drone (a Wi-Fi quadricopter) use adhoc mode.
The AR.Drone can sent me images captured form the build-in camera.
I want to sync those image to the Internet immediately when AR.Drone sent me the images,
but my Wifi already connect to the AR.Drone.
Is there anyway(maybe use computer) to connect to the AR.Drone and upload images at same time?
One possibility might be to use your phone's tethering/hotspot mode, if it has one. Then you can use a wpa_supplicant program that's been cross-compiled for ARM and run it on the drone to connect to that wifi network.
https://github.com/daraosn/ardrone-wpa2 is a very easy-to-use project that will let your drone connect to an existing wifi network instead of creating its own. You clone it from github, turn on the drone, connect your laptop to the drone's wifi network and run script/install. Then turn on the phone's hotspot, and from your laptop run script/connect "<essid>" -p "<password>" -a <address> -d <droneip> to tell the drone to connect to that network.
Hopefully at that point the phone will have internet connectivity at the same time that it's connected to the drone over wifi.

How to use adb over Mobile AP (Portable wifi hotspot)

First : I know about abdWireless app. But my problem is different.
I am using my Android mobile as Mobile AP (Portable WiFi hotspot) for using internet on my computer. I want to use adb in wireless mode but the problem is - when i enable Mobile AP on my android mobile WiFi gets turned off and i am unable to use abdWireless app.
I want to use both wireless ADB and Mobile AP at the same time.
Is there any way to do it ???
Developers have created apps for this:
https://play.google.com/store/apps/details?id=com.ttxapps.wifiadb
Once you start this app, you can connect to your phone like this:
adb connect ip_address_of_the_device
However, your phone must be rooted!
Please let me know if this helps!
On mac:
You need to run: ifconfig
Followed by run: arp -a
In my case, the first listed IP is router IP, ie. IP of your android device with hotspot(let it be: ip_address_of_the_hotspot_device).
Then run either: adb connect ip_address_of_the_hotspot_device or adb connect ip_address_of_the_hotspot_device:5555

Categories

Resources