in reply to Which port does CPAN use

I believe that CPAN uses either HTTP on port 80 or FTP on port 21, depending on the configuration and the modules installed on your local system. You may need to configure CPAN to use a proxy.