Hi digit
On Apr 28, 3:05 pm, Digit <[EMAIL PROTECTED]> wrote: > 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 ?) No, DNS didn't work either. The initial error was: "host not found". So I started investigating on this. We do have two DNS servers here (so potentially an android DNS problem) but they are redundant, therefore hold the same data => doesn't matter which is picked. I found out in the last post (using emulator ping command) that actually only one dns server in one subnet was reachable (altough from my host computer both are reachable). So there was a discrepancy between reachability of IP addresses between android an windows xp. > 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. hmmm... since the ping command in the android shell did show reply messages, I assumed it was working. Are you sure this command doesn't work (unfortunately I'm not allowed to sniff the network interface so I can't really tell)? If it doesn't work my analysis in the previous post does not apply anymore. > 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. I see. Sounds simple and effective. And I would also assume that this should work perfectly as long as the computer running the emulator is configured properly. The strangest thing happened today: I started the system and everything worked again. Same network settings, same network addresses, same emulator, no changes to settings or whatsoever :| Good thing: it does work again Bad thing: don't know why ;) > > 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/threa... --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---

