kharaku has asked for the wisdom of the Perl Monks concerning the following question:

Hi I have been using a different IP address on my server for running WWW::Mechanize (using the local_address feature which I believe comes from LWP::UserAgent) The problem is that I now want to use a different address on the server which is on a different subnet. Is there anyway to set this?
  • Comment on How Can I change the Subnet For Mechanize/LWP

Replies are listed 'Best First'.
Re: How Can I change the Subnet For Mechanize/LWP
by moritz (Cardinal) on May 05, 2010 at 12:08 UTC
    If you change the local IP address on the TCP/IP level, then the answers won't reach your client.

    So the only things you can do is 1) run the script on a machine in the right subnet 2) find a proxy in the right subnet 3) forget it.

Re: How Can I change the Subnet For Mechanize/LWP
by Anonymous Monk on May 05, 2010 at 12:13 UTC
    Set LocalAddr on the server code
Re: How Can I change the Subnet For Mechanize/LWP
by arc_of_descent (Hermit) on May 05, 2010 at 12:10 UTC
    Not sure what you mean, but lookup IP Alias