Which Port?

  • Thread starter Thread starter Justin
  • Start date Start date
J

Justin

Hello.

When writing socket programs which comunicate with eachother over IP,
how do you choose which port they should use?

Cheers,

Justin.
 
Use dynamic port binding let the system find a free port
for u.
That way you'll never get in the way off other programs
that want to use a fixed port
write a simple rpc interface to let each program ask the
other what his current port number is.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top