[4036] in java-interest
Re: InetAddress
daemon@ATHENA.MIT.EDU (Pradeep Badri)
Fri Dec 8 00:15:39 1995
From: Pradeep Badri <pbadri@cisco.com>
To: elliotte@blackstar.com
Date: Thu, 7 Dec 95 19:59:04 PST
Cc: java-interest@java.sun.com
In-Reply-To: <4CF1C3B0DCD@blackstar.blackstar.com>; from "Elliotte Rusty Harold" at Dec 7, 95 6:47 pm
Hi,
InetAddress devAddr ;
devAddr = InetAddress.getByName("199.1.32.90") ;
is what you are looking for.
-pb.
Pradeep Badri.
Cisco Systems.
>
> Is there a way to create a new InetAddress pointing at a particular
> IP #? e.g.. 199.1.32.90? In my application I do not necessarily
> know the host name. What I need is an InetAddress constructor that
> can take either a byte array or a string like "199.1.32.90"
>
> Alternately I could use a method that would convert a numeric address
> into a valid hostname. Any suggestions?
>
>
> --
> Elliotte Rusty Harold Black Star Publishing Co., Inc.
> elliotte@blackstar.com 116 East 27th Street
> elharo@shock.njit.edu NY NY 10016
> -
> This message was sent to the java-interest mailing list
> Info: send 'help' to java-interest-request@java.sun.com
>
-
This message was sent to the java-interest mailing list
Info: send 'help' to java-interest-request@java.sun.com