This is the mail archive of the
java-discuss@sourceware.cygnus.com
mailing list for the Java project.
InetAddress bug?
- To: java-discuss@sourceware.cygnus.com
- Subject: InetAddress bug?
- From: Lincoln Spiteri <lincoln.spiteri@st.com>
- Date: Mon, 26 Jul 1999 15:58:10 +0200
- Organization: STMicroelectronics
Hello,
I am trying to get the host address from both a Socket and a ServerSocket as
follows:
String address = someSocket.getInetAddress().getHostAddress();
this always returns a null.
I am initialising the ServerSocket with the ServerSocket(porNumber) constructor
and the other socket comes from an accept call on the server socket
Is this invalid code or a bug?
Regards
Lincoln
--
------------------------------------------------------------------------------
Lincoln Spiteri
Manufacturing Systems
STMicroelectronics, Malta
e-mail: lincoln.spiteri@st.com
------------------------------------------------------------------------------