Click here to get back home

HTTP::Proxy and not using 127.0.0.1

 HomeNewsGroups | Search | About
 comp.lang.perl.modules    Post an article   get this group's latest topics as an RSS feed add this group's latest topics to your My MSN content add this group's latest topics to your My Yahoo content
Subject Author Date
HTTP::Proxy and not using 127.0.0.1 neilx 05-11-2006
Posted by neilx on May 11, 2006, 6:10 pm
Please log in for more thread options


I am getting great results with HTTP::Proxy - as long as I use
127.0.0.1 as the proxy address in a browser on the same machine.

I would like to have a lan-available proxy so have tested with using
the machine ip it is running on: 192.168.0.73, but the proxy doesn't
get contacted, even by a browser on the local machine.

I feel sure this is an easy problem, but the things I have tried so far
haven't fixed it for me:

my $proxy = HTTP::Proxy->new( PeerAddr =>'192.168.0.73',port => 8080 );
my $proxy = HTTP::Proxy->new( LocalAddr=>'192.168.0.73',port => 8080 );
my $proxy = HTTP::Proxy->new( MultiHomed =>1,port => 8080 );

Any suggestions gratefully received.

If it matters, I am using a WinXP machine with Activestate ActivePerl
5.8.8 build 816. The MS-Firewall has port 8080 unblocked.

Neil


Posted by sam.bartlett on May 11, 2006, 7:28 pm
Please log in for more thread options


If you haven't already, check the firewall on the remote machine.
It's probably blocking incoming connections on that port.


Posted by neilx on May 12, 2006, 7:31 am
Please log in for more thread options


Just cracked it:

my $proxy = HTTP::Proxy->new( host=>'192.168.0.73',port => 8080 );


Similar ThreadsPosted
Using HTTP::Proxy September 23, 2004, 5:41 am
HTTP::Proxy - how to detect start and end of URL fetch September 26, 2004, 6:00 am
LWP, https and a proxy February 22, 2005, 7:43 am
DBI/DBD-Oracle and Proxy June 13, 2007, 11:43 am
PPM through Proxy (Activeperl / Activestate) July 14, 2005, 1:37 pm
wsp, Firefox proxy and ports August 21, 2007, 9:08 pm
mod_perl and proxy settings May 26, 2008, 3:03 pm
Net::Telnet -- does it support Proxy or SOCKS connections? August 4, 2005, 11:10 pm
SOLVED: Running MCPAN behind an authenticating proxy server (kludge) November 23, 2004, 1:05 pm
XML-RPC over HTTP with SSL January 17, 2005, 10:08 pm

Our other projects:

Art Dolls, Fairies and Mermaids - Sunnyfaces.net

Roy's Linux, Programming and Search Engines messages

1-Script XML SitemapXML Sitemap