What I'm wondering is, if there is any way to specify what local port the client should be using when making a connection to the server?
Yes. Just include the LocalPort parameter when you call IO::Socket::INET->new().
It works as advertised. It is usually used when listening, but it does the right thing when initiating a connection as well.
-sauoq "My two cents aren't worth a dime.";
In reply to Re: Socket: Specifying client port to connect from
by sauoq
in thread Socket: Specifying client port to connect from
by Ordinary_User
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |