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.
 
Back
Top