Click to See Complete Forum and Search --> : why would createServerSocket fail?


Justis
August 30th, 2002, 06:16 AM
i'm using the following code to create a SSLServerSocket, and i get an IOException on runtime. i've used all sorts of port number, and it failed with them all.

SSLServerSocketFactory factory = (SSLServerSocketFactory)
SSLServerSocketFactory.getDefault();

try{
m_ss = (SSLServerSocket) factory.createServerSocke
(SOCK_PORT);
}
catch(UnknownHostException e){
return false;
}

thanks for your time,
justis

jparsons
August 30th, 2002, 04:46 PM
Is your port above 1024?

Justis
August 30th, 2002, 09:46 PM
yeah

jparsons
August 31st, 2002, 09:27 PM
Originally posted by Justis
yeah

Could you post the exception stack trace. That usually gives us a good idea what is going wrong