Cygwin: How to setup tftpd

February 14, 2010 · Posted in Cygwin · Comment 

Make sure you have setup inetd already.

create a root directory for tftpd:

$ mkdir /tftpboot

Edit /etc/inetd.conf

(before)

#tftp  dgram   udp     wait    nobody  /usr/sbin/in.tftpd in.tftpd

(after)

tftp  dgram   udp     wait    root  /usr/sbin/in.tftpd in.tftpd -s -p /tftpboot

# If you changed the root directory for tftpd, then the above line needs to be modified accordingly.

Restart cygwin inetd service:

$ net stop inetd
$ net start inetd

Check if the tftpd is working

$ netstat -a | grep tftp
  UPD     MyServer:tftp           *:*