Hi,

I was reading up on basic networking with Sockets on java and had this
question: if a server was started on a machine A with the constructor -
new ServerSocket(0), and I needed a client on Machine B to connect to this
server but the client does not know in advance which port will the service
be available on. How can one avoid this? How can an application decide in
advance which port its going use on a machine?

I apologise if this is a Java related question and not a java-linux
one. Is there a good reference and/or a list where I can go with questions
like these? 

Thanks,
-Karthik.

--------------------------
Prediction is very difficult, especially of the future.
- Niels Bohr



----------------------------------------------------------------------
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]

Reply via email to