Development issue/problem:

Recently I saw that it was possible to debug application development using WIFI instead of the USB debugging method. I did a search and found an app called abdWireless, but I have a problem.

How do I tell Eclipse to connect via the wifi method?

I think it’s an automatic process, but it opens the emulator when you start debugging.

Anyone?
See you around.

How can I solve this problem?

Solution 1:

First run adb connect ip:port, like adb connect, from the console/terminal (with your IP address and the reason for the port). The adb service will then connect to your device on the network.
Port 5555 is used by default if no port number is specified.

Then make sure the device is connected properly: Run the advertising software from the console/terminal (be sure to remove the USB cable from the device). If advertisers don’t mention your devices, then you have a whole different problem.

If you have connected your device via adb and you can see the device in the adb device list, but your eclipse still works with the emulator:

  1. Go to Run->Debug Configuration -> [Your configuration].
  2. In the configuration, click on the Destination tab and select Manual.

ADB, Wifi and Eclipse: how I can configure? –

Each time you launch the application from Eclipse, a device selection window appears. This way you can explicitly specify which emulator/device you want to use.

To disable your device, turn off adb.

Solution 2:

This process can be automated from Eclipse using Adb Connect:
http://ppareit.github.com/AdbConnect/

Solution 3:

I will try to explain how I connected Eclipse to my Android device with adb via wifi on my win7 x32, sharing my internet connection at the same time.

I use two methods.
The first is when my computer is connected to the internet (i.e. via an Ethernet cable) and I share this connection with my Android device via WLAN (as an access point).
The second one I use when my computer is not directly connected to the internet, but I use the internet from my device to connect my computer to the internet.

1. Computer connected to the Internet, android device connected to the Internet through my computer.

Note that your WLAN card must meet certain conditions to work, as it may not work with all WLAN cards.

First, you need to share your internet connection from your computer. To do this, open cmd (command line) with administrator privileges (click on the Win logo, type cmd, then press Ctrl+Shift+Enter). To create a hotspot, enter:

netsh
wlan
set hostnetwork mode=Side permission=Hotspot key=D2D46784ECB32 keyUsage=persistent
start hostnetwork

Change the hotspot according to the name you want to give your site. Change D2D46784ECB32 to the desired key (WPA2).

Now navigate to the control panel and internet connections. You will probably notice a new adapter called Wireless Network Connection 2. Right-click on the Ethernet connection (or any other device you use to connect to the Internet). Click on Properties. Click on the Share button. Select the Allow other network users to connect through this computer’s Internet connection check box. 1. Select the wireless network connection 2. Press OK. You have just started the Internet Connection Sharing (ICS) program.

The next step is to connect the device to the connection you just made. On your Android device, search for the Wi-Fi connection found on the page you installed (i.e., access point) and enter the key you installed (i.e., D2D46784ECB32). Once the connection is established, you can access the Internet.

Note that I sometimes have problems with this connection. Sometimes my device cannot connect (I think there is a bug in Win7). I usually solve the problem by connecting to my computers and disabling the Allow others…. option. on Ethernet connection under Properties -> Sharing. option. Press OK. Then go back to Connection properties -> Sharing and check the box Other…. box. I basically restarted ICS. And now I can usually communicate.

Also note that after rebooting the computer, I will probably also have to reboot the hosting network and reset the ICS.

To stop the access point, enter:

Hosting network shutdown

To start the access point, enter:

host a hosting network

Note that it is not necessary to reinstall the hosting network, just run it. Note that you must be in netsh – wlan mode (type netsh then wlan as before), and the command must have been run as an administrator.

If you haven’t already, enable development options on your Android device and enable ADB on the network. After that you will most likely see the IP address, completed with

:5555

I mean… :
192.168.137.158:5555

On the computer, open cmd and go to the adt/sdk/platform-tools folder. On my computer it looks like this:

cd C:Software Filezades embedded in windows-x86sdk platform-tools

And enter the following:

adb connect 192.168.137.158

You must replace the IP address with the one displayed on your Android device in the development settings. (I didn’t need to add the suffix/port :5555, but you may need it).
To verify that the connection was successful, enter:

Means of advertising

(By the way, I would like to thank Inazaruk for his help on this issue).

You should now be able to connect Eclipse to your Android device via wifi as others have explained (run setup -> target -> manual).

2. The computer is not connected to the Internet. You use the Internet connection on the Android device to connect your computer to the Internet.

On your Android device, go to Settings -> More -> Access Point and Mobile -> Set up a Wi-Fi access point. Change the SSID, key and security as desired.

Take a step back and turn on the portable Wi-Fi hotspot.

On your computer, connect to your Android device via wifi, as you would for any other wifi connection, using the page and key you configured.

Once connected, go to Control Panel – Network and Internet Connections – Network Connections and right-click on the wireless connection you just made. Choose Status and then Details. Find the IPv4 address of your computer (at least I use IPv4, you can also use IPv6).

This address could be:
192.124.159.52
The default gateway is then as follows:
192.124.159.1

On the computer, open cmd and go to the adt/sdk/platform-tools folder. On my computer it looks like this:

cd C:Software Filezades embedded in windows-x86sdk platform-tools

And enter the following:

adb connect 192.124.159.1

You need to replace the IP address with the one given by the default gateway (I didn’t need to add the suffix/port :5555, but you might need it).
To verify that the connection was successful, enter:

Means of advertising

(By the way, I want to thank Inazaruk for this again).

You should now be able to connect Eclipse to your Android device via wifi as others have explained (run setup -> target -> manual).

3. The computer and Android device are connected to the Internet through the same wireless modem.

I must admit that I have not tried this option, but I suppose it is similar to the previous two methods. Find the IP address of the Android device in the developer settings (you should see this if you enable ADB on the network). And then on your computer as before:

Open cmd, go to the folder adt/sdk/platform-tools. On my computer it looks like this:

cd C:Software Filezades embedded in windows-x86sdk platform-tools

And enter the following:

Advertising Login

.
To check if the connection was successful, enter :

Means of advertising

You should now be able to connect Eclipse to your Android device via wifi as others have explained (run setup -> target -> manual).

I know that’s not really the answer to the question. But it was very difficult for me to share my internet connection and then use Wifi with Eclipse to develop applications. After a while I was able to connect as described. So if I could help someone do the same, I would be happy to do so.

Good luck!

 adb downloadadb commands list pdfadb command not foundadb devices not showingadb fastboot commandsadb is not recognizedappium connect to remote deviceappium get device ipadb connect to remote serverappium rokurun appium tests on real ios device over wifihow to connect real android device to appiumadb keeps disconnectingandroid studio emulator device offlinefix for adb devices offline 100% workingallow adb debugging in charge only modeadb device offline wifiinstallation failed due to: 'device offline'how to connect real device to eclipseeclipse not detecting android deviceeclipse androidappium on windows for androidsetting appiumwindows appium setupbelajar appiuminstall appium toolsqaappium with toolsqatomtom bridge releasestomtom bootloader downloadhow to enable usb debugging using adb commandadb connect to deviceadb commandsadb shellhow to install adbadb over wifiinstall adb windows 10how to use adb

You May Also Like

How to Use Google Parental Controls using Family Link on Android

Manage parental rights with Google One on your Android phone or tablet.…

Wireshark Tutorial for Beginners 2021 | A Network Packet Analyzer

What is a sandbar shark? Wireshark is a network packet analyzer. The…

Determine User’s Current Location Example in Swift

In this example Swift code you will learn how to get the…

ERR_INTERNET_DISCONNECTED in Chrome [SOLVED] –

If your browser displays the ERR_INTERNET_DISCONNECTED error, it means that your browser…