Do you run an internal dns? Tested here in the emulator and actual device without problems.
Best regards, Phil. Christian Wiesbauer wrote: > > Hi, > > I’m trying to make a connection with one of the hosts in my network > with following code: > > URL aURL = new URL(http://<hostname>:<port>/<path>); > > URLConnection conn = aURL.openConnection(); > > conn.connect(); > > If I use the IP address of the host everything works fine but if I > change it to the hostname I get an “UnknownHostException: Host is > unresolved: <hostname>:<port>”. This only happens if I use internal > hostnames, external hostnames like google.com work! > > Does anybody have a solution for this problem? > > Best regards, > > Christian Wiesbauer > > > > --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Android Developers" group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers-unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -~----------~----~----~----~------~----~------~--~---