use LWP::Protocol::http; @LWP::Protocol::http::EXTRA_SOCK_OPTS = (LocalAddr => "$vhost:$port");