Unable to connect to network AVD devices

Mobile Testing, Android App Testing.
phibao37
Posts: 5
Joined: Tue Mar 07, 2017 9:35 am

Unable to connect to network AVD devices

Post by phibao37 » Sun Jan 07, 2018 5:32 am

I have following environment

Computer 1 - Windows 7 - dev machine
- IP: 192.168.1.2
- Install Ranorex (6.1.1)

Computer 2 - Windows 7 - sharing android virtual machine
- IP: 192.168.1.3
- Install AVD1, AVD2, ... (installed Ranorex service)

(May be: computer 3, 4 - other dev machines)

I want to connect Ranorex to AVD devices through network.
Follow this tutorial: http://www.41post.com/5003/programming/ ... tor-access

- On computer 2, using port forwarding:

Code: Select all

netsh interface portproxy add v4tov4 listenport=5585 listenaddress=192.168.1.3 connectport=5555 connectaddress=127.0.0.1
- On computer 1:
Try with ADB

Code: Select all

adb connect 192.168.1.3:5585
Output: connected to 192.168.1.3:5585
Try with Ranorex
Image
Image
Image

Can this approach possible?

asdf
Posts: 174
Joined: Mon Mar 21, 2016 3:16 pm

Re: Unable to connect to network AVD devices

Post by asdf » Wed Jan 10, 2018 5:01 pm

Have you already tried it without port forwarding? I'm automating AVD devices as well and for me the approach you mentioned worked. However, as I said, I'm using the default port 5555.