l1z2g9 / proxoid

Automatically exported from code.google.com/p/proxoid
0 stars 0 forks source link

Android AVD cannot connect to internet through Proxoid #43

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1. Windows 7 64bit. Followed instructions on getting Proxoid installed and 
working on the Motorola Droid... meaning opening a browser on the machine will 
access internet successfully after following instructions.

2. Startup Android Emulator Google API v8 using eclipse then launch the browser 
and get the following error: "No network connection:  Browser cannot load this 
page because there is no internet connection". Meanwhile I can still get 
internet access through the machines web browser.

3. Now I try the following command: "C:\android-sdk-windows\tools>emulator.exe 
-avd AVD_2.2_wSD -http-proxy http://localhost:8080 -debug-proxy -dns-server 
localhost"

I also use variants of the "-dns-server 127.0.0.1", "-dns-server 
127.0.0.1:8080", "8.8.8.8", "8.8.4.4", etc... Still get same error message:  

### WARNING: can't resolve DNS server name 'localhost'
### WARNING: will use system default DNS server
Warning: No DNS servers found

What is the expected output?
I am a little confused here as most of the information I found on changing 
Windows 7 DNS records indicate that you should basically go to the interface 
being used and enter static addresses... Because I am connecting using Proxoid 
I am not sure how to modify this information as the command "ipconfig /all" 
does not list the proxy connection as one of the interfaces being used...

What do you see instead?
I see that I have more to learn about the inner workings of networking 
concepts. I am assuming that start-tunnel script launches a service which 
listens for connections on locahost:8080 and acts as the proxy to the network 
through my phones data connection. If this is the case then I wonder why the 
Android Emulator does not know how to resolve the connection unless because the 
connection is already using part of the toolkit and thus concurrent instances 
of "Android Devices" need to be made aware of each other???

What version of the product are you using?
Latest version as of 10/12/2010

On what operating system?
Windows 7 Home Premium 64bit.

Please provide any additional information below.
I apologize in advance for posting this here as most likely this is something 
related to the Android Emulator... However I am using Proxoid and do not 
normally have problems with the Emulator connecting to the internet when on a 
regular Wifi/Ethernet connected LAN. Also I am sorry that I use Windows 7 in 
this example but my laptop has an Arrandale chip set which I have not been able 
to have working correctly with Ubuntu 10.04 and multi display/back light 
control. So when working in a mobile situation Windows 7 has all the correct 
drivers to squeeze as much time from my battery as possible. I intend to try 
Ubuntu 10.10 soon but that requires time away from work that actually pays.  

Original issue reported on code.google.com by tmcwho@gmail.com on 12 Oct 2010 at 3:53