in reply to Telling LWP which source IP to use
That is a function of the routing tables in your operating system, not the application. If you want LWP to use a specific IP for outgoing connections, you'll have to change the network interface used for the address range you're trying to connect to.