Ordinary_User has asked for the wisdom of the Perl Monks concerning the following question:
I'm writing a script that will use IO::Socket::INET to connect to a server script, also using IO::Socket::INET.
The two scripts talk to each other very nicely, so far so good. The problem I have is that every connection the client makes, comes from a random port number. The server port number is allways the same but the port number that the client uses is allways random.
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?
I need the two clients to communicate over a single port number since I have only one port number open in my firewall. (Changing the FW-settings is not an option, though)
Thanx for taking the time to read my question!
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Socket: Specifying client port to connect from
by sauoq (Abbot) on Oct 21, 2003 at 09:23 UTC | |
by Ordinary_User (Beadle) on Oct 21, 2003 at 11:31 UTC |