hmmm, could you provide me with additionnal details: - when you say it "cannot connect", what error message / exception do you get when you try to ? - does DNS resolution work (especially if you can set the y.y.1.y DNS server as the first one in your host DNS server list ?)
note that "ping" is not supported in the emulator anyway, but TCP/UDP connections to the outside world should work, as long as the emulator application is not blocked by a firewall or something like that. the network settings in the Android emulator are pretty simple: gateway is set to 10.0.2.1 which is a special address used by the internal router/firewall. the latter will translate any TCP/UDP request into a BSD socket connect() to the corresponding target address. then, it is your host OS responsability to properly connect to the outside world. the exception is DNS, where the emulated system will try to connect to 10.0.2.3 which is a special address that is mapped to your first host DNS server (in this case, it would be z.z.0.z) On Mon, Apr 28, 2008 at 2:22 PM, patrick <[EMAIL PROTECTED]> wrote: > > hi, > > I have experienced networking problems with android. There are > different threads in this forum, that did already explain a DNS > problem [1]. > The problems I have go beyond the simple name resolution problem: it > seems like I'm not even able to ping certain addresses (network works > just fine with all other applications). > Looks like a android routing problem to me. > > > Settings: > ====== > host (windows xp) network settings: > ip address: x.x.1.x > subnet address: 255.255.0.0 > DNS address: z.z.0.z > y.y.1.y > Gateway: a.a.0.a > > > Problem: > ======= > Android is not able to connect to any address outside the x.x.1.x > subnet. Unfortunately I was not able to take a look at android network > settings. Although there are ifconfig and route commands these > commands didn't display any information. > > > Possible Explanation: > ================ > The problems feels the same way as if android has either wrong network > masks set or wrong routing table. > > > Did somebody else experience this problem? Or did somebody even have a > solution to it? > > cheers, > Patrick > > [1] > > http://groups.google.com/group/android-developers/browse_thread/thread/b04537d827c4f9e1/c45fc7072616c87f?lnk=gst&q=dns#c45fc7072616c87f > > > --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Android Developers" group. To post to this group, send email to [email protected] To unsubscribe from this group, send email to [EMAIL PROTECTED] Announcing the new M5 SDK! http://android-developers.blogspot.com/2008/02/android-sdk-m5-rc14-now-available.html For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -~----------~----~----~----~------~----~------~--~---

