I'm trying to set the ip address in lwp::useragent so I tried the following. But it throws the following error
Can't connect to www.some_domain.com:443
LWP::Protocol::https::Socket: bind: Cannot assign requested address at /usr/local/share/perl/5.18.2/LWP/Protocol/http.pm line 47.
I don't know how to fix it. My code is as follow
use LWP::UserAgent;
my $url = "https://www.some_domain.com";
my $ua = LWP::UserAgent->new();
$ua->local_address("152.73.205.80");
my $response = $ua->get($url);
$cont = $response->content;
print $cont;
How can I fix it.?