ICQ/AIM File Transfer Tutorial

What ports do I have to open in CPF to be able to transfer files in ICQ and AIM? ;/