in reply to Setting IP address of client socket

I can't find anything in the documentation for IO::Socket or in the man pages

And yet IO::Socket::INET says:

LocalAddr Local host bind address hostname[:port +] LocalHost Synonym for LocalAddr LocalPort Local host bind port <service>[(<no +>)] | <no>
Perhaps you missed that. Seems pretty clear to me.

-- Randal L. Schwartz, Perl hacker
Be sure to read my standard disclaimer if this is a reply.