Windows OS Hub
  • Windows
    • Windows 11
    • Windows 10
    • Windows Server 2025
    • Windows Server 2022
    • Windows Server 2019
    • Windows Server 2016
  • Microsoft
    • Active Directory (AD DS)
    • Group Policies (GPOs)
    • Exchange Server
    • Azure and Microsoft 365
    • Microsoft Office
  • Virtualization
    • VMware
    • Hyper-V
    • Proxmox
  • PowerShell
  • Linux
  • Home
  • About

Windows OS Hub

  • Windows
    • Windows 11
    • Windows 10
    • Windows Server 2025
    • Windows Server 2022
    • Windows Server 2019
    • Windows Server 2016
  • Microsoft
    • Active Directory (AD DS)
    • Group Policies (GPOs)
    • Exchange Server
    • Azure and Microsoft 365
    • Microsoft Office
  • Virtualization
    • VMware
    • Hyper-V
    • Proxmox
  • PowerShell
  • Linux

 Windows OS Hub / Windows Server 2019 / How to Install and Configure TFTP Server and Client on Windows

March 15, 2024

How to Install and Configure TFTP Server and Client on Windows

TFTP (Trivial File Transfer Protocol) is a simplified file transfer protocol that provides an easy way to download and upload files. Typically, TFTP is used for PXE booting (network boot, diskless workstations, etc.), import/export network equipment configs, firmware upgrades, and some other specific tasks. This protocol has no means of security, authentication, or management. Its main advantage is easy client-side implementation and high performance when large files are transferred. The protocol uses UDP port 69.

Contents:
  • How to Run TFTPD64 Server on Windows
  • Enable TFTP Client on Windows
  • Installing Built-in TFTP Server on Windows Server

How to Run TFTPD64 Server on Windows

The most common way to quickly run a TFTP server on Windows is to use the free open-source tftpd64 (tftpd32) tool. You can download the tftpd64 portable or installation package here.

  1. Run the executable file tftpd64.exe;
  2. There are several tabs in the tftpd64 interface. In the TFTP Server tab, click the Settings button, and select the root directory you want to share;  run tftpd64 server on windows
  3. Then set TFTP Security = None;
  4. You must restart the app after changing the TFTP settings;
  5. Open UDP port 69 in the Windows Firewall for incoming TFTP traffic. Create a Windows Firewall rule using PowerShell:
    New-NetFirewallRule -DisplayName 'TFTP-UDP-In' -Direction Inbound -Action Allow -Protocol UDP -LocalPort 69
    Enable-NetFirewallRule 'TFTP-UDP-In'
  6. You can now connect to TFTPserver to send or download files.

The tftpd64 program can be used as a TFTP client. Specify the IP address of the TFTP server and the connection port (69 by default) in the TFTP Client tab.

You can now download (Get) or upload (Put) files to the specified tftp server.

using tftpd64 client

Use the Log Viewer tab to review the TFTP operation and connection logs.

Enable TFTP Client on Windows

The TFTP client is not installed by default on Windows. You can install it on a Windows 10 or 11 machine with the command:

Enable-WindowsOptionalFeature –FeatureName TFTP -Online

Enable tftp.exe client on Windows

A different command is used to install the TFTP client on Windows Server:

Install-WindowsFeature TFTP-Client

You will now be able to use the tftp.exe command line tool to upload and download files via TFTP.

  • Send (upload) file to TFTP server: tftp 192.168.51.100 PUT testfile.bin
  • Download file from TFTP: tftp 192.168.51.100 GET testfile.bin

Installing Built-in TFTP Server on Windows Server

Windows Server has a built-in TFTP server that is part of the WDS role. It is used for PXE booting or installing Windows over the network. To install the TFTP service, open the Server Manager -> Add Roles and Features Wizard -> select the Windows Deployment Services role.

Windows Server: install WDS role

Select Transport Server only in the WDS role components.

Install transport server to impement tftp on Windows Server

Create a directory that will be the root directory for the TFTP server. For example, C:\tftp.

Specify the path to the TFTP root directory in the REG_SZ parameter RootFolder under the following registry key HKLM\SYSTEM\CurrentControlSet\services\WDSServer\Providers\WDSTFTP

configure tftp server settings via registry

The ReadFilter parameter contains a list of directories from which files can be downloaded. By default, you can only download files from the \boot\ and \tmp\ directories. You must add allowed directories to the ReadFilter parameter or specify \* here if you are using a different directory structure.

Start the WDSServer service and change the startup type to Automatic.

Get-Service WDSServer| Start-Service
Set-service WDSServer -StartupType Automatic

Check that the TFTP service is running and that its process is listening on UDP port 69:

Get-Process -Id (Get-NetUDPEndpoint -LocalPort 69).OwningProcess

Windows Deployment Services (UDP-In) should be enabled in Windows Defender Firewall to allow access to TFTP on port UDP/69.

(Get-NetFirewallRule -displayname 'Windows Deployment Services (UDP-In)').enabled

Try downloading a file from a TFTP server using the built-in tftp.exe client:

tftp -i 192.168.158.10 get test.zip

tftp command to download file

The main drawback of the built-in TFTP server in Windows Server is that it does not allow you to upload files. Clients can only download files from such a TFTP server.

5 comments
6
Facebook Twitter Google + Pinterest
Windows 10Windows 11Windows Server 2016Windows Server 2019
previous post
Windows: Auto Reconnect to VPN on Disconnect
next post
Fixing High Memory Usage by Metafile on Windows Server 2008 R2

Related Reading

How to Get My Public IP Address with...

October 24, 2023

How to Obtain SeDebugPrivilege when Debug Program Policy...

March 11, 2024

How to See Number of Active User Sessions...

March 16, 2024

Auto-mount VHD/VHDX File at Startup in Windows

February 20, 2024

Configure Storage Spaces Direct (S2D) on Windows Server

March 11, 2024

How to Clear Event Viewer Logs on Windows

November 9, 2023

Booting Windows from GPT Disk on BIOS (non-UEFI)...

March 11, 2024

FTP Server Quick Setup on Windows 10/11 and...

March 16, 2024

5 comments

Gunanr November 17, 2017 - 1:36 pm

But it’s only for “get file” not “put file”!!!
No write operations allowed…

Reply
admin November 24, 2017 - 7:33 am

You can only read data from such a Windows TFTP-server, write operations are impossible

Reply
Update Firmware on Summit Extreme Stack Switch | Welcome to Pariswells.com May 25, 2018 - 8:58 am

[…] Make sure the machine you are using does not have WDS enabled , WDS uses TFTP  […]

Reply
Paris Wells May 25, 2018 - 9:00 am

Thanks for this , that would be why my TFTP downloaded servers don’t work on my WDS Box!

Also make sure you enabled PORT 69 UDP on the windows firewall ( Guest network as this will be probably the network you are using ( not domain )

Reply
botva July 2, 2019 - 9:45 am

simply just restart wds server service after changing registry keys and no need to install deployment service

Reply

Leave a Comment Cancel Reply

join us telegram channel https://t.me/woshub
Join WindowsHub Telegram channel to get the latest updates!

Recent Posts

  • Encrypt Any Client-Server App Traffic on Windows with Stunnel

    June 12, 2025
  • Failed to Open the Group Policy Object on a Computer

    June 2, 2025
  • Remote Desktop Printing with RD Easy Print Redirection

    June 2, 2025
  • Disable the Lock Screen Widgets in Windows 11

    May 26, 2025
  • Configuring Windows Protected Print Mode (WPP)

    May 19, 2025
  • Map a Network Drive over SSH (SSHFS) in Windows

    May 13, 2025
  • Configure NTP Time Source for Active Directory Domain

    May 6, 2025
  • Cannot Install Network Adapter Drivers on Windows Server

    April 29, 2025
  • Change BIOS from Legacy to UEFI without Reinstalling Windows

    April 21, 2025
  • How to Prefer IPv4 over IPv6 in Windows Networks

    April 9, 2025

Follow us

  • Facebook
  • Twitter
  • Telegram
Popular Posts
  • Unable to Connect Windows 10 Shared Printer to Windows XP
  • How to Configure and Deploy Screensaver on Windows with Group Policy
  • Recovering Files from a RAW Partition using TestDisk
  • How to Unblock a File Downloaded from Internet on Windows
  • Windows: Auto Reconnect to VPN on Disconnect
  • How to Clear Event Viewer Logs on Windows
  • Find The Cause of Windows Slow Boot with Process Monitor
Footer Logo

@2014 - 2024 - Windows OS Hub. All about operating systems for sysadmins


Back To Top