[4758] in java-interest

home help back first fref pref prev next nref lref last post

Re:misplaced method

daemon@ATHENA.MIT.EDU (Elliotte Rusty Harold)
Fri Jan 12 14:22:46 1996

From: "Elliotte Rusty Harold" <elliotte@blackstar.com>
To: John Scharles <johns@fishnet.net>
Date:          Fri, 12 Jan 1996 13:16:02 EST
Reply-To: elliotte@blackstar.com
Cc: java-interest@java.sun.com


> Arthur's answer to my original question showed that getByName can
> take a string of the IP address, so this works fine:
> 
> InetAddress a = InetAddress.getByName("129.144.86.116");
> 

This depends on what you want to do. If you want to open a socket to 
this address, then this is sufficient. On the other hand if you 
actually want the name instead of the IP number, (for instance for a 
server log processing application)  this doesn't work.


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

home help back first fref pref prev next nref lref last post