My DNS server and my proxy server is the same machine : 192.168.4.3
I launch my emulator with the following command to display network debug messages and to configure proxy and DNS servers :
- Code: Select all
emulator -debug-proxy -debug-slirp -avd AVD_1.6_SDcard_64M -dns-server 192.168.4.3 -http-proxy http://192.168.4.3:3128
And I get the following messages in console when I try to connect to http://www.google.com from the web browser :
- Code: Select all
### WARNING: can't resolve DNS server name '192.168.4.3'
### WARNING: will use system default DNS server
emulator: DNS Servers:
emulator: 192.168.4.3
emulator: sending slirp logs with mask 7 to C:DOCUME~1sguyomarLOCALS~1Temp\
AndroidEmulatorslirp.log
proxy_http_setup: creating http proxy service connecting to: 192.168.4.3:3128
server name '192.168.4.3' resolved to 192.168.4.3:3128
proxy_http_setup: creating HTTP Proxy Service Footer is (len=2):
'
'
http_service_connect: trying to connect to 209.85.229.105:80
http_service_connect: using HTTP rewriter
tcp:209.85.229.105:80(1488): cannot connect to proxy: <unknown error>
Althought there are "###WARNING" messages about the DNS at the beginning, DNS resolution works because http://www.google.com was replaced by its IP address 209.85.229.105.
I also try to enter http_proxy inside the database but it does not work...
- Code: Select all
adb shell
sqlite3 /data/data/com.android.providers.settings/databases/settings.db
INSERT INTO system VALUES(99,'http_proxy','192.168.4.3:3128');
Does anyone know how to solve this network problem ?
I want to solve it, not only for the web browser, but for all applications because I will develop applications that need to access network.
Thanks for you help !



