maandag 16 februari 2015

Use the build in TFTP server in OSX

Use the build in TFTP server in OSX

To start the TFTP server: 
sudo launchctl load -F /System/Library/LaunchDaemons/tftp.plist

To stop the TFTP Server: 
sudo launchctl unload -F /System/Library/LaunchDaemons/tftp.plist

You can put your files in the folder: 
/private/tftpboot

You can change this folder in: 
/System/Library/LaunchDaemons/tftp.plist

To test the TFTP setup

Create a file named test.txt in:
/private/tftpboot

Change into your home folder: 
cd ~

Enter the following command: 
tftp 127.0.0.1 

You will get a prompt: 
tftp>

To get the test file: 
get test.txt 

You will get a response like: 
Received 8 bytes in 0.0 seconds

Geen opmerkingen:

Een reactie posten