[4667] in java-interest
Re: misplaced method
daemon@ATHENA.MIT.EDU (Arthur van Hoff)
Wed Jan 10 14:09:00 1996
Date: Wed, 10 Jan 1996 09:15:52 -0800
From: Arthur.Vanhoff@Eng.Sun.COM (Arthur van Hoff)
To: elliotte@blackstar.com
Cc: java-interest@java.Eng.Sun.COM
Hi Elliotte,
> > > I know I'm going to feel stupid on finding out the answer to this,
> > > but I've gone through the APIs and can't find a method that mimics
> > > the socket function gethostbyaddr. Do I need my eyes checked or is
> > > it hidden somewhere?
> >
> > Try this, you need to convert the IP address to a string though:
> >
> > String host = getByName("129.144.86.116").getHostName();
>
>
> This only seems to return the numeric IP address formatted as a
> String, e.g. "199.1.32.90" instead of "star.blackstar.com". Is there
> anyway to get the host name back?
Oops. You are right. It seemed so easy, didn't it? I'll find out if
it can be done, but I'm not optimistic...
Have fun,
Arthur van Hoff
-
This message was sent to the java-interest mailing list
Info: send 'help' to java-interest-request@java.sun.com