case for when socket is not created via serversocket