in reply to LWP and LocalIP/LocalPort
In this case I suspect that your machine already has a server running on port 8080. If the port is already taken, the OS will not let you use it for an outgoing connection.
If you want to connect from a specified local IP to a server that is running on port 8080, set the Local IP with
Then set the destination port as part of the URL you are retrieving, e.g. http://hostname:8080/index.html@LWP::Protocol::http::EXTRA_SOCK_OPTS = ( LocalAddr => '1.2.3.4' );
JJ
|
---|
Replies are listed 'Best First'. | |
---|---|
Re: Re: LWP and LocalIP/LocalPort
by jk2addict (Chaplain) on Oct 16, 2002 at 03:20 UTC | |
by jj808 (Hermit) on Oct 16, 2002 at 04:02 UTC | |
by jk2addict (Chaplain) on Oct 16, 2002 at 04:12 UTC |