in reply to Re: What's the best way to find an unused TCP port on the local system
in thread What's the best way to find an unused TCP port on the local system
I have one more question. I'm interested in this problem of finding an unused port on a local system too. It's for some client/server based IPC. Given any method of those mentioned here (I prefer yours most), how would I go to communicate it to possible clients? One way could be to write that info into a (configuration) file, as the OP suggests. But that is somewhat unsatisfactory because if I wanted to make the processes communicate through files I may have chosen to do by means e.g. of a named pipe in the first place.
Of course I may set up a predefined port, and failing that, use a workaround. On the client side, if the server doesn't respond, and only then, the client itself may check a suitable file. However how do people generally deal with this problem? (If it is a problem at all...)
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^3: What's the best way to find an unused TCP port on the local system
by ikegami (Patriarch) on Oct 20, 2006 at 20:02 UTC | |
|
Re^3: What's the best way to find an unused TCP port on the local system
by sgifford (Prior) on Oct 20, 2006 at 20:29 UTC |