in reply to FTP Transfer

Well, there are two general modes for FTP: active and passive.

Not having looked deeply into your code: If you're on a network with no special security and your original setup was geared towards a regular FTP-Server, your original script should be portable to a new box.