If you want to open a socket to connect to a (possibly remote) listening port, you should get assigned a random free local port number by the system and you'll be fine until you run out of ports (or open handles).
I'm not sure if you actually can open a connection to a listening port from a port number that is already in use as a listening port. I also can't think of a situation where you'd care.
In reply to Re^3: connection refused
by Joost
in thread connection refused
by llobrin
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |