TechBuzzPro

How to Install TFTP Server & Client on Windows

· 5 min read · Windows & PC

In this article
  1. What You'll Need
  2. Step-by-Step
  3. Common Mistakes
  4. Tips
  5. Troubleshooting
  6. Frequently Asked Questions

This guide shows you how to install and configure a TFTP (Trivial File Transfer Protocol) server and client on Windows. TFTP is a simple file transfer protocol often used for network booting, firmware updates, and device configuration. On Windows, the TFTP client is a built-in optional feature, while the server requires a third-party tool (we'll use the popular, free Tftpd64). By the end, you'll be able to transfer files between your Windows PC and network devices.

What You'll Need

  • A Windows PC (Windows 10 or 11 recommended) with administrator rights.
  • Internet access to download the TFTP server software.
  • Basic knowledge of IP addresses and file paths.

Step-by-Step

Part 1: Install the TFTP Client (Built-in)

  1. Open the Start menu, type Control Panel, and press Enter.
  2. Click Programs (or Programs and Features).
  3. Click Turn Windows features on or off. A new window will open.
  4. Scroll down the list and find TFTP Client. Check the box next to it.
  5. Click OK. Windows will install the feature. You may need to restart your PC if prompted.
  6. After installation, open a Command Prompt (type cmd in Start, right-click and choose Run as administrator).
  7. Type tftp -? and press Enter. You should see usage information, confirming the client is ready.

Part 2: Install a TFTP Server (Tftpd64)

  1. Open your web browser and go to the official Tftpd64 download page (search for "Tftpd64 official site"). Download the latest stable version (usually a ZIP file).
  2. Extract the ZIP file to a folder, e.g., C:\Tftpd64.
  3. Run tftpd64.exe as administrator (right-click and select Run as administrator).
  4. In the main window, you'll see several tabs. The Global tab is active by default.
  5. Under Base Directory, click Browse and select a folder where you want to store files for TFTP transfers. For example, create a folder C:\TFTPRoot and select it.
  6. Check the boxes for TFTP Server and TFTP Client (the client here is optional, but we'll use the built-in one).
  7. Note the IP Address dropdown. It should show your PC's local IP address. If you have multiple network adapters, select the one you want to use.
  8. Click OK to start the server. The main window will show a log of connections.

Part 3: Configure and Test the Server

  1. Place a test file (e.g., test.txt) in the base directory you selected.
  2. Open a Command Prompt as administrator.
  3. To test the server locally, type the following command and press Enter:
    tftp -i 127.0.0.1 GET test.txt
    This downloads the file from the server to your current directory.
  4. If you see "Transfer successful", the server is working. If not, check the server log in Tftpd64 for error messages.
  5. To test from another device on your network, use that device's TFTP client to connect to your PC's IP address (the one shown in Tftpd64).

Part 4: Configure Firewall Rules (if needed)

  1. If other devices cannot connect, Windows Firewall may be blocking TFTP. Open Windows Defender Firewall from Control Panel.
  2. Click Allow an app or feature through Windows Defender Firewall.
  3. Click Change settings and then Allow another app.
  4. Browse to the Tftpd64 executable (e.g., C:\Tftpd64\tftpd64.exe) and add it.
  5. Ensure both Private and Public boxes are checked for it, then click OK.

Common Mistakes

  • Forgetting to run the server as administrator: Tftpd64 may not bind to the network port without admin rights.
  • Wrong base directory: If you don't set a base directory, the server may default to the executable's folder, which can cause permission issues.
  • Using the wrong IP address: If your PC has multiple network adapters (e.g., Wi-Fi and Ethernet), the server may listen on the wrong one. Always check the IP shown in Tftpd64.
  • Firewall blocking: Windows Firewall often blocks TFTP by default. If transfers fail from other devices, add an inbound rule for UDP port 69.

Tips

  • Use a dedicated folder for TFTP transfers and keep it organized; it's easy to overwrite files accidentally.
  • For network booting (PXE), you may need to configure a DHCP server separately; TFTP only handles the file transfer.
  • TFTP has no encryption or authentication, so only use it on trusted networks.
  • If you need to transfer files larger than 32 MB, you may need to adjust the block size in Tftpd64's settings (Settings > TFTP > Block Size).

Troubleshooting

If the client command fails with "Connect failed" or "Timeout":

  1. Check that the server is running and the base directory is set correctly.
  2. Try pinging the server IP from the client to ensure network connectivity.
  3. Check the Tftpd64 log for error messages (e.g., "Permission denied" or "File not found").
  4. If using a firewall, temporarily disable it to test; if it works, then add the correct exception.

If the server starts but no one can connect:

  1. Ensure the server is listening on the correct IP. In Tftpd64, the IP dropdown should match your PC's local IP.
  2. Check Windows Firewall inbound rules: add a rule for UDP port 69 (the default TFTP port).
  3. If you have antivirus software, it may block the server; add an exception.

If transfers are extremely slow:

  1. TFTP uses a small default block size (512 bytes). In Tftpd64, go to Settings > TFTP and increase the block size to 1468 or 8192 for better performance.

Frequently Asked Questions

Is TFTP secure?

No. TFTP has no encryption, authentication, or even a file listing. It's a bare-bones protocol. Use it only on trusted, isolated networks.

Can I use TFTP to transfer files between two Windows PCs?

Yes, but it's not the best choice. For simple file sharing, use SMB (file sharing) or a tool like FTP. TFTP is mainly for device firmware and network booting.

What is the default TFTP port?

UDP port 69. Make sure your firewall allows inbound UDP on port 69 for the server.

Why can't I put files into a subfolder on the server?

By default, TFTP clients can only access the base directory and its subfolders if the server is configured to allow subdirectory access. In Tftpd64, check the "Allow subdirectories" option in Settings > TFTP.

How do I stop the TFTP server?

Just close the Tftpd64 window. The server stops immediately.

Can I use the built-in Windows TFTP client to upload files?

Yes, the built-in client supports both GET and PUT commands. Use tftp -i serverIP PUT filename to upload.