InetAddress bug?
Lincoln Spiteri
lincoln.spiteri@st.com
Mon Jul 26 07:15:00 GMT 1999
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
------------------------------------------------------------------------------
More information about the Java
mailing list