From time to time I need to use TFTP for recovering routers or VoIP phones. Until today I've used my Windows PC because I didn't know that Mac OS X has a built in TFPT server.

Here is how to start a TFTP server on Mac OS X

  1. Start the Terminal app
  2. Enable the TFTP service
    sudo launchctl load -F /System/Library/LaunchDaemons/tftp.plist
  3. Launch the TFTP Server
    sudo launchctl start com.apple.tftpd
  4. Put your files in the TFTP directory
    /private/tftpboot
  5. Stop the TFTP server
    sudo launchctl stop com.apple.tftpd

If needed you can change the server's path in the following plist file:
/System/Library/LaunchDaemons/tftp.plist