Bug in getInetAddress from Socket?
gback at cs.utah.edu
Tue May 25 12:39:32 PDT 1999
> It seems that getInetAddress() gets the wrong address. See the following code
> fragment (ss is a ServerSocket):
> Socket s = ss.accept();
> System.out.println("Got a connection from location: " + s.getInetAddress());
> On JDK/Solaris, I get the address (name and number) of the remote host,
> the one that opened the Socket, whereas on Kaffe/Linux, I get the
> address of the local host, i.e., the one that created the ServerSocket,
> the one where this code is running.
> Am I doing something wrong here, or is this a (known) Kaffe bug?
You can always find out whether something is a known kaffe
bug by consulting the Kaffe bug database at www.kaffe.org.
Please check bug #82 and #85 and check whether you're using a version
of Kaffe younger than 4/30.
More information about the kaffe