# \[Tutorial\] How to run tests on real Android device remotely through Wi-Fi

**URL:** <https://discuss.appium.io/t/tutorial-how-to-run-tests-on-real-android-device-remotely-through-wi-fi/1135>\
**Category:** Tutorials/Documentation\
**Created:** [October 28, 2014, 7:08pm UTC](https://discuss.appium.io/t/tutorial-how-to-run-tests-on-real-android-device-remotely-through-wi-fi/1135 "2014-10-28T19:08:11Z")\
**Posts on this page:** 20\
**Page:** 1

<div class="post-metadata">

**Author:** ![kirill](https://discuss.appium.io/user_avatar/discuss.appium.io/kirill/32/1205_2.png) [@kirill](https://discuss.appium.io/u/kirill)\
**Post date:** [October 28, 2014, 7:08pm UTC](https://discuss.appium.io/t/tutorial-how-to-run-tests-on-real-android-device-remotely-through-wi-fi/1135/1 "2014-10-28T19:08:11Z")

</div>

**1.** Connect device to computer via USB.  
**2.** Make sure device and computer are connected to the same Wi-Fi.  
**3.** Run this command to restart adb and make it work over tcpip:

```
adb tcpip 5555

```

**4.** Disconnect device  
**5.** Get IP address of your phone ( **“Settings” -\> Wifi -\> “Your connected network” -\> Your IP address"** )  
**6.** Run this command to connect adb to your device over Wi-Fi using IP address:

```
adb connect <your phones ip address>

```

**7.** Verify, that adb works remotely:

```
adb devices

```

**8.** Run tests over Wi-Fi!

Source: [http://qaautomationworld.blogspot.com/2014/06/appium-executing-test-throgh-wi-fi-on-real-devies.html](http://qaautomationworld.blogspot.com/2014/06/appium-executing-test-throgh-wi-fi-on-real-devies.html)

---

<div class="post-metadata">

**Author:** ![chaoskid42](https://discuss.appium.io/letter_avatar_proxy/v4/letter/c/ba8739/32.png) [@chaoskid42](https://discuss.appium.io/u/chaoskid42)\
**Post date:** [October 29, 2014, 12:16am UTC](https://discuss.appium.io/t/tutorial-how-to-run-tests-on-real-android-device-remotely-through-wi-fi/1135/2 "2014-10-29T00:16:32Z")

</div>

this is sweet. one small typo though. “adb device” should be “adb devices”

---

<div class="post-metadata">

**Author:** ![kirill](https://discuss.appium.io/user_avatar/discuss.appium.io/kirill/32/1205_2.png) [@kirill](https://discuss.appium.io/u/kirill)\
**Post date:** [October 29, 2014, 12:34am UTC](https://discuss.appium.io/t/tutorial-how-to-run-tests-on-real-android-device-remotely-through-wi-fi/1135/3 "2014-10-29T00:34:57Z")

</div>

You are right, thanks! Fixed 😄

---

<div class="post-metadata">

**Author:** ![Sravanmedarapu](https://discuss.appium.io/letter_avatar_proxy/v4/letter/s/90db22/32.png) [@Sravanmedarapu](https://discuss.appium.io/u/Sravanmedarapu)\
**Post date:** [October 29, 2014, 8:21am UTC](https://discuss.appium.io/t/tutorial-how-to-run-tests-on-real-android-device-remotely-through-wi-fi/1135/4 "2014-10-29T08:21:24Z")

</div>

```
Hi Kirill
Thanks for sharing the info :-)
```

---

<div class="post-metadata">

**Author:** ![Mayuresh\_Shirodkar](https://discuss.appium.io/letter_avatar_proxy/v4/letter/m/a3d4f5/32.png) [@Mayuresh\_Shirodkar](https://discuss.appium.io/u/Mayuresh_Shirodkar)\
**Post date:** [November 10, 2014, 1:28pm UTC](https://discuss.appium.io/t/tutorial-how-to-run-tests-on-real-android-device-remotely-through-wi-fi/1135/5 "2014-11-10T13:28:16Z")

</div>

Hi @kirill,Have u ran an appium test wirelessly on iPhone device?

@jonahss Any idea if this can be achieved?As the Xcode doesn’t provide search service

---

<div class="post-metadata">

**Author:** ![jonahss](https://discuss.appium.io/user_avatar/discuss.appium.io/jonahss/32/5340_2.png) [@jonahss](https://discuss.appium.io/u/jonahss)\
**Post date:** [November 11, 2014, 9:37pm UTC](https://discuss.appium.io/t/tutorial-how-to-run-tests-on-real-android-device-remotely-through-wi-fi/1135/6 "2014-11-11T21:37:30Z")

</div>

I haven’t seen anything saying it can be done on iOS, but I’m not certain 😉

---

<div class="post-metadata">

**Author:** ![kirill](https://discuss.appium.io/user_avatar/discuss.appium.io/kirill/32/1205_2.png) [@kirill](https://discuss.appium.io/u/kirill)\
**Post date:** [November 11, 2014, 11:53pm UTC](https://discuss.appium.io/t/tutorial-how-to-run-tests-on-real-android-device-remotely-through-wi-fi/1135/7 "2014-11-11T23:53:59Z")

</div>

Yeah, I think the same way as well.

---

<div class="post-metadata">

**Author:** ![nirmal\_kumar](https://discuss.appium.io/letter_avatar_proxy/v4/letter/n/3da27b/32.png) [@nirmal\_kumar](https://discuss.appium.io/u/nirmal_kumar)\
**Post date:** [June 9, 2015, 10:16am UTC](https://discuss.appium.io/t/tutorial-how-to-run-tests-on-real-android-device-remotely-through-wi-fi/1135/8 "2015-06-09T10:16:58Z")

</div>

hi @kirill

It is possible to connect an android device from different network ?

---

<div class="post-metadata">

**Author:** ![vaish](https://discuss.appium.io/letter_avatar_proxy/v4/letter/v/82dd89/32.png) [@vaish](https://discuss.appium.io/u/vaish)\
**Post date:** [July 29, 2016, 12:47pm UTC](https://discuss.appium.io/t/tutorial-how-to-run-tests-on-real-android-device-remotely-through-wi-fi/1135/9 "2016-07-29T12:47:47Z")

</div>

I get error when i follow above steps: unable to connect to 172.26.0.127:5555: cannot connect to 172.26.0.127:5555: No  
connection could be made because the target machine actively refused it. (10061)  
Any idea how can i solve this?

---

<div class="post-metadata">

**Author:** ![faisalmiskhat](https://discuss.appium.io/letter_avatar_proxy/v4/letter/f/58956e/32.png) [@faisalmiskhat](https://discuss.appium.io/u/faisalmiskhat)\
**Post date:** [August 2, 2016, 4:13am UTC](https://discuss.appium.io/t/tutorial-how-to-run-tests-on-real-android-device-remotely-through-wi-fi/1135/10 "2016-08-02T04:13:59Z")

</div>

I am getting the same error as well.

unable to connect to 192.168.5.95:5555: cannot connect to 192.168.5.95:5555: A connection attempt failed because the connected party did not properly respond after a period of time, or established connection failed because connected host has failed to respond. (10060).

NEED HELP here!

---

<div class="post-metadata">

**Author:** ![tindecken](https://discuss.appium.io/letter_avatar_proxy/v4/letter/t/ecb155/32.png) [@tindecken](https://discuss.appium.io/u/tindecken)\
**Post date:** [August 8, 2016, 6:47am UTC](https://discuss.appium.io/t/tutorial-how-to-run-tests-on-real-android-device-remotely-through-wi-fi/1135/11 "2016-08-08T06:47:43Z")

</div>

easy to folow, it works like a charm!

---

<div class="post-metadata">

**Author:** ![velavaluri\_prathap](https://discuss.appium.io/letter_avatar_proxy/v4/letter/v/71e660/32.png) [@velavaluri\_prathap](https://discuss.appium.io/u/velavaluri_prathap)\
**Post date:** [October 21, 2016, 11:05pm UTC](https://discuss.appium.io/t/tutorial-how-to-run-tests-on-real-android-device-remotely-through-wi-fi/1135/12 "2016-10-21T23:05:48Z")

</div>

i got the same error

---

<div class="post-metadata">

**Author:** ![Akhilesh\_Chauhan](https://discuss.appium.io/letter_avatar_proxy/v4/letter/a/82dd89/32.png) [@Akhilesh\_Chauhan](https://discuss.appium.io/u/Akhilesh_Chauhan)\
**Post date:** [December 22, 2016, 5:29am UTC](https://discuss.appium.io/t/tutorial-how-to-run-tests-on-real-android-device-remotely-through-wi-fi/1135/13 "2016-12-22T05:29:44Z")

</div>

> [@kirill](#):
>
> adb tcpip 5555

may be your system firewall is blocking the incoming connection from device , please check once the Inbound and outbound rule for the opened port

---

<div class="post-metadata">

**Author:** ![Akhilesh\_Chauhan](https://discuss.appium.io/letter_avatar_proxy/v4/letter/a/82dd89/32.png) [@Akhilesh\_Chauhan](https://discuss.appium.io/u/Akhilesh_Chauhan)\
**Post date:** [December 22, 2016, 5:30am UTC](https://discuss.appium.io/t/tutorial-how-to-run-tests-on-real-android-device-remotely-through-wi-fi/1135/14 "2016-12-22T05:30:39Z")

</div>

may be your system firewall is blocking the incoming connection from device , please check once the Inbound and outbound rule for the opened port

---

<div class="post-metadata">

**Author:** ![sivan2503](https://discuss.appium.io/letter_avatar_proxy/v4/letter/s/b5e925/32.png) [@sivan2503](https://discuss.appium.io/u/sivan2503)\
**Post date:** [March 28, 2017, 10:30am UTC](https://discuss.appium.io/t/tutorial-how-to-run-tests-on-real-android-device-remotely-through-wi-fi/1135/15 "2017-03-28T10:30:06Z")

</div>

Thanks a lot for the info!! It works

---

<div class="post-metadata">

**Author:** ![Raj\_jayanth](https://discuss.appium.io/letter_avatar_proxy/v4/letter/r/7ea924/32.png) [@Raj\_jayanth](https://discuss.appium.io/u/Raj_jayanth)\
**Post date:** [April 4, 2017, 10:54pm UTC](https://discuss.appium.io/t/tutorial-how-to-run-tests-on-real-android-device-remotely-through-wi-fi/1135/16 "2017-04-04T22:54:56Z")

</div>

Hi  
I have tried to connect my android device over wifi  
Able to connect using the adb commands but when i run the test script in eclipse the appium server automatically kills my adb server saying adb server out of date  
After that the appium server is not able to detect my device.  
Can any one help

---

<div class="post-metadata">

**Author:** ![sachin925](https://discuss.appium.io/user_avatar/discuss.appium.io/sachin925/32/3319_2.png) [@sachin925](https://discuss.appium.io/u/sachin925)\
**Post date:** [April 5, 2017, 5:44am UTC](https://discuss.appium.io/t/tutorial-how-to-run-tests-on-real-android-device-remotely-through-wi-fi/1135/17 "2017-04-05T05:44:50Z")

</div>

Thanks @kirill for this information. 🙂

---

<div class="post-metadata">

**Author:** ![rameshbabup24](https://discuss.appium.io/letter_avatar_proxy/v4/letter/r/13edae/32.png) [@rameshbabup24](https://discuss.appium.io/u/rameshbabup24)\
**Post date:** [August 20, 2018, 6:19pm UTC](https://discuss.appium.io/t/tutorial-how-to-run-tests-on-real-android-device-remotely-through-wi-fi/1135/18 "2018-08-20T18:19:47Z")

</div>

Worked so easily. Thanks!

---

<div class="post-metadata">

**Author:** ![shaileshugile1990](https://discuss.appium.io/user_avatar/discuss.appium.io/shaileshugile1990/32/6110_2.png) [@shaileshugile1990](https://discuss.appium.io/u/shaileshugile1990)\
**Post date:** [September 25, 2019, 1:41pm UTC](https://discuss.appium.io/t/tutorial-how-to-run-tests-on-real-android-device-remotely-through-wi-fi/1135/19 "2019-09-25T13:41:10Z")

</div>

> [@Raj\_jayanth](#):
>
> After that the appium server is not able to detect my device.

Same problem is happening with me. Any idea how to avoid this ?

---

<div class="post-metadata">

**Author:** ![mykola-mokhnach](https://discuss.appium.io/user_avatar/discuss.appium.io/mykola-mokhnach/32/4578_2.png) [@mykola-mokhnach](https://discuss.appium.io/u/mykola-mokhnach)\
**Post date:** [September 25, 2019, 4:44pm UTC](https://discuss.appium.io/t/tutorial-how-to-run-tests-on-real-android-device-remotely-through-wi-fi/1135/20 "2019-09-25T16:44:46Z")

</div>

There is `suppressKillServer` capability, which prevents adb server from being killed by Appium

[Next page](https://discuss.appium.io/t/tutorial-how-to-run-tests-on-real-android-device-remotely-through-wi-fi/1135.md?page=2)
