For this code to work on MAC OS X you need to have the started a local FTP server on your machine.
To do this - you can find information here: http://osxdaily.com/2011/09/29/start-an-ftp-or-sftp-server-in-mac-os-x-lion/
To use the program run from Terminal.
- USERNAME: Insert Local User Name
- HOST: Enter 'localhost'
- PORT: 21
- WORDLIST: any .txt file