The FTPServer app by Andreas Liebig can be used to run a FTP server on your Android or CyanogenMod device. Install it from the Google Play Store.
Before you do anything, open the app and go to its Settings. Here set the username, password and port. Also, set the default directory on the device that you want the server to present to FTP clients. Make sure you carefully configure the Allowed connections section carefully to restrict access only from within certain networks, like your home wireless network for example. Once configuration is done, choose Save and restart service.
When you want to connect to the device over FTP, run the FTPServer app and choose Start FTP service. Done!
Tried with: FTPServer 2.2.1 and CyanogenMod 10-20121228-NIGHTLY-encore