How can I get remote computer's internet address
1 posts in topic
Flat View  Flat View

Posted By:   David_W
Posted On:   Thursday, August 7, 2003 02:53 PM

Hi, I try to connect to an embedded computer from PC.

My embedded computer's IP is, I can use ftp

connect with it. But when I try to use


to get InetAddress address, I got exception like:


Would please anyone tell me where was wrong.

Re: How can I get remote computer's internet address

Posted By:   Christopher_Koenigsberg  
Posted On:   Friday, August 8, 2003 06:18 AM

That is a private non-routable IP address, meaning it can't be shared in the global external DNS system. Do you have a local entry e.g. in /etc/hosts for that IP address, giving it a hostname?

If so and it is still not finding it, perhaps your getByName is linked with the resolver library that uses DNS and ignores /etc/hosts? there may be an "/etc/resolv.conf", and "/etc/svcorder" etc. to configure it, so you could have a local /etc/hosts file come first in the order it searches.

About | Sitemap | Contact