Yes, I'm using an internal dns? Is that a problem?

Best regards,
Christian Wiesbauer

-----Ursprüngliche Nachricht-----
Von: android-developers@googlegroups.com
[mailto:android-develop...@googlegroups.com] Im Auftrag von lotusscript
Gesendet: Freitag, 19. Dezember 2008 11:17
An: android-developers@googlegroups.com
Betreff: [android-developers] Re: android dns problems


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
-~----------~----~----~----~------~----~------~--~---

Reply via email to