-2

I tried many options to connect with adv but always I receive connection refused. My setup is following:

Kali is in Virtual Box on Win 10. Kali has NAT network with IP 10.0.2.15 with no port forwarding.

Android Studio is on the sam Win 10 machine like Virtual Box. settings are setup to no proxy. Emulator Pixel 6 has IP 10.0.2.2.

Windows 10 has IP 192.168.1.131

I allowed IP address and port 5555 to pass through.

Also I tried adb kill-server and adb start server, and then adb tcpip 5555.

Tried to search on internet and ChatGPT without luck. Also I followed instructions from Android Developers Networking without luck.

Anyone knows what could be issue?

rickyk
  • 19
  • 2
  • Have you tried to establish a SSH connection from Windows to Kali forwarding TCP port 5555? – Robert Aug 24 '23 at 11:43
  • I did as you mentioned, and also I used PuTTy to connect Kali in Virtual Box and Win 10 with adb connect 127.0.0.1:5555 and it is working. I also succeed with this: Started a reverse SSH tunnel to Kali. Replaced kali_ip with the actual IP address of Kali machine and _ssh_port 22. Executed this command:plink.exe -R 5555:localhost:5555 -P 22 -ssh username@kali_ip and then adb connect 127.0.0.1:5555. The emulator device is attached. Thanks Robert for help! – rickyk Aug 27 '23 at 16:06

0 Answers0