Windows OS Hub
  • Windows Server
    • Windows Server 2022
    • Windows Server 2019
    • Windows Server 2016
    • Windows Server 2012 R2
    • Windows Server 2008 R2
    • SCCM
  • Active Directory
    • Active Directory Domain Services (AD DS)
    • Group Policies
  • Windows Clients
    • Windows 11
    • Windows 10
    • Windows 8
    • Windows 7
    • Windows XP
    • MS Office
    • Outlook
  • Virtualization
    • VMWare
    • Hyper-V
    • KVM
  • PowerShell
  • Exchange
  • Cloud
    • Azure
    • Microsoft 365
    • Office 365
  • Linux
    • CentOS
    • RHEL
    • Ubuntu
  • Home
  • About

Windows OS Hub

  • Windows Server
    • Windows Server 2022
    • Windows Server 2019
    • Windows Server 2016
    • Windows Server 2012 R2
    • Windows Server 2008 R2
    • SCCM
  • Active Directory
    • Active Directory Domain Services (AD DS)
    • Group Policies
  • Windows Clients
    • Windows 11
    • Windows 10
    • Windows 8
    • Windows 7
    • Windows XP
    • MS Office
    • Outlook
  • Virtualization
    • VMWare
    • Hyper-V
    • KVM
  • PowerShell
  • Exchange
  • Cloud
    • Azure
    • Microsoft 365
    • Office 365
  • Linux
    • CentOS
    • RHEL
    • Ubuntu

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

October 24, 2023 Windows 10Windows 11Windows Server 2016Windows Server 2019

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 use the Set-Service command to 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
3
Facebook Twitter Google + Pinterest
previous post
Configuring Remote Control in SCCM 2012
next post
Fixing High Memory Usage by Metafile on Windows Server 2008 R2

Related Reading

Zabbix: How to Get Data from PowerShell Scripts

October 27, 2023

Tracking Printer Usage with Windows Event Viewer Logs

October 19, 2023

How to Use Ansible to Manage Windows Machines

September 25, 2023

Installing Language Pack in Windows 10/11 with PowerShell

September 15, 2023

How to View and Change BIOS (UEFI) Settings...

September 13, 2023

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

Categories

  • Active Directory
  • Group Policies
  • Exchange Server
  • Microsoft 365
  • Azure
  • Windows 11
  • Windows 10
  • Windows Server 2022
  • Windows Server 2019
  • Windows Server 2016
  • PowerShell
  • VMWare
  • Hyper-V
  • Linux
  • MS Office

Recent Posts

  • Zabbix: How to Get Data from PowerShell Scripts

    October 27, 2023
  • Tracking Printer Usage with Windows Event Viewer Logs

    October 19, 2023
  • PowerShell: Configure Certificate-Based Authentication for Exchange Online (Azure)

    October 15, 2023
  • Reset Root Password in VMware ESXi

    October 12, 2023
  • How to Query and Change Teams User Presence Status with PowerShell

    October 8, 2023
  • How to Increase Size of Disk Partition in Ubuntu

    October 5, 2023
  • How to Use Ansible to Manage Windows Machines

    September 25, 2023
  • Installing Language Pack in Windows 10/11 with PowerShell

    September 15, 2023
  • Configure Email Forwarding for Mailbox on Exchange Server/Microsoft 365

    September 14, 2023
  • How to View and Change BIOS (UEFI) Settings with PowerShell

    September 13, 2023

Follow us

  • Facebook
  • Twitter
  • Telegram
Popular Posts
  • Unable to Connect Windows 10 Shared Printer to Windows XP
  • How to Configure a Slideshow Screensaver Using GPO
  • Windows 10: WSUS Error 0x8024401c
  • Recovering Files from a RAW Partition using TestDisk
  • Virtual Secure Mode (VSM) in Windows 10 Enterprise
  • How to Clear Windows Event Logs Using PowerShell or Wevtutil
  • AutoRedial for VPN Connections in Windows 8/10/2012
Footer Logo

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


Back To Top