Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Android emulator unreachable proxy on host windows

I am using tor on my windows machine, it's port is 8118. Now in android emulator I want to use tor from windows host so I open setting -> proxy and set this according this:

enter image description here

But as you can see proxy is unreachable?

How can I use emulator under tor?

I also added host IP address but I got unreachable.Additionally I do not use android studio. I just use android emulator to run react native app .

like image 226
Cyrus the Great Avatar asked Dec 10 '19 11:12

Cyrus the Great


People also ask

How do I change proxy settings on emulator?

With the emulator open, click More , and then click Settings and Proxy. From here, you can define your own HTTP proxy settings. The -http-proxy option forces the emulator to use the specified HTTP/HTTPS proxy for all outgoing TCP connections.

Can Android emulator connect to localhost?

If you're using Android Studio to run the emulator, then localhost of your host computer will be mapped to the IP address, 10.0. 2.2 , inside the emulator. If you're using other programs to run the emulator, then you may need to consult the documentation associated with those programs.

How do I enable Internet on Android emulator?

Go to your Android\Sdk\emulator folder and open command prompt. Type emulator -list-avds to see available emulator names. Type emulator -avd name-of-your-device -netdelay none -netspeed full -dns-server 8.8. 8.8 command and press enter.

How do I change DNS on Android emulator?

It's Terminal: Fixing the DNS address issue Getting a list of available virtual devices for the Android Emulator. Then run one of the available emulators with the command, “emulator -avd DEVICE_NAME”, followed by the argument “-dns-server 8.8. 8.8”.


1 Answers

I had a similar problem and managed to solve it by not using Android Studio or Emulator settings at all. I deleted all proxy settings in the emulator settings and studio, then opened wifi settings in the emulator, edit the AndroidWifi -> Advanced and set my proxy there (10.0.2.2 port 8888) and that was the only thing that worked.

like image 152
Mike Avatar answered Oct 06 '22 02:10

Mike