Note that there are some explanatory texts on larger screens.

plurals
  1. PO
    text
    copied!<p>This might not be a complete solution to your problem. But here it is anyway:</p> <p>From your "detailed" problem description it looks like it's a problem with your desktop/laptop. Even though your firewall allows connections to websites as you mentioned, "FTP" might not be allowed by the Windows internal firewall.</p> <p>Usually, ports 20 (FTP command port) and 21 (FTP data port) should have been added to the firewall exceptions (In Windows - <em>Start</em> → <em>Settings</em> → <em>Control Panel</em> → Click on <em>Security Center</em> → <em>Firewall</em> → <em>Exceptions (tab)</em> → <em>Add ports</em>. You can try adding ports 20 and 21 to the exceptions.</p> <p>However, if you are connected to a router, you may have to port forward ports 20 and 21. However, these ports are forwarded by default, or if you are in a corporate VPN then it's a whole different story. Corporate VPNs, mostly restrict port 21 explicitly however allow port 22 (which is a secured version of port 21, for SFTP). Under such circumstances you may want to use <em>ftp_proxy</em>.</p> <p>Alternatively (if you don't want to add port 20 and 21 to exception), you can go to the <code>cpan</code> prompt and use an <code>ftp_proxy</code> by:</p> <pre><code>cpan&gt; o conf ftp_proxy http://your.ftpproxy.com </code></pre> <p>and then issue the <code>install &lt;module&gt;</code> command. Or you can update your <code>../CPAN/config.pm</code> file to make permanent changes to the <code>ftp_proxy</code> parameter.</p> <p>Well, these may be the traditional solutions which you probably already tried. The next step would be to try set the <code>FTP_PASSIVE</code> mode to <code>1</code>. By default the <code>libnetcfg</code> configuration for this is set to <code>0</code>. To change this, find the <code>libnetcfg.bat</code> file (it should be somewhere <code>C:\Perl\bin</code>). Open the file in an editor and replace</p> <pre><code>ftp_int_passive 0 </code></pre> <p>with</p> <pre><code>ftp_int_passive 1 </code></pre> <p>This is the Windows batch file that runs once <code>CPAN</code> is invoked to set the environment variables. Under a UNIX/Linux-like architecture it's found as <code>libnet.cfg</code> and environment variable <code>FTP_PASSIVE</code>, like</p> <pre><code>$set | grep FTP_PASSIVE FTP_PASSIVE=0 </code></pre> <p>so to set just <code>EXPORT FTP_PASSIVE=1</code>.</p> <p>These might be a few of the very many ways of debugging this. Honestly, there is no point fiddling around the library code as they well work on every other machine, usually 95% of <code>01mailrc.txt.gz.tmp1252</code> download issues are due to network/OS/firewall issues, but if you want to expand your Perl knowledge of LWP you can. In fact, you should also be looking at <code>CPAN::FTP::netrc</code>. Best of luck...</p>
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload