How to Setup and Configure TFTP Server on Windows

A TFTP (Trivial File Transfer Protocol) server helps move files between computers on a network, making it handy for managing files on different devices. TFTP is a basic tool with limited security, best used in safe settings where security isn’t a big concern.

Setup and Configure-TFTP Server
How to Set Up and Configure a TFTP Server

After Windows removed the Homegroup feature in version 1803, many people started using TFTP servers for easier file sharing. SolarWinds TFTP Server is a popular option because it’s easy to set up and works well for moving files across networks.

Requirements:

Before you set up your TFTP server, ensure the following requirements are met:

  • Administrator Account: You need to be logged in as an administrator to set up a TFTP server on your system.
  • SolarWinds TFTP Server: Download the SolarWinds TFTP Server utility from here. Extract the .zip file to your desktop and follow the installation instructions.
  • Port Forwarding: To allow remote access, forward UDP Port 69 to your network’s IP address using your router, if needed. A remote connection is unnecessary if you don’t require file transfer access from outside your network.

Once you meet all the requirements, you can set up the server.

Remote Access or Local Access

To allow access from outside your local network, use a static IP or whitelist your dynamic IP. By default, the TFTP server allows all IP addresses, but with port forwarding, you can define a specific IP range for access.

IP Configuration for Solarwinds TFTP

Set up the TFTP Server

Follow these instructions to set up the server:

  1. Run the SolarWinds TFTP Server utility by searching for TFTP Server in the Start Menu.
  2. Select File, then choose Configure.
    SolarWinds TFTP Server File Menu
  3. To display the server in the System Tray, select ‘Add TFTP Server to Windows System Tray‘.
  4. Choose the Server Root Directory to save received files. To send files, copy them to this directory first. Click Browse to select a location.
    Changing the Server Root Directory
  5. Switch to the Security tab to set restrictions.
  6. Select Send files or Receive files as needed. To enable both, check the ‘Send and Receive files‘ box.
    Selecting Transfer Types
  7. To enhance security, allow specific IP addresses by checking ‘Only allow the following IP address to send/receive files‘ and clicking Add.
  8. Enter the IP address range and click OK.
    Allowed Range of IP Addresses
  9. Click OK to finish configuration.

Your TFTP Server is now set up successfully.

Use the TFTP Server

After setting up a TFTP server, here’s how to send or receive files:

Port Forward – If you need remote access, forward port 69. Access your router’s control panel, go to Advanced Setup, locate NAT or Port Forward, and enter UDP port 69 on your IPv4 address. Note, port forwarding isn’t required for local transfers.

Install TFTP Client

To install the TFTP Client on a remote or local system:

  1. Open the Start Menu and go to Control Panel.
  2. Navigate to Programs and Features and select ‘Turn Windows features on or off‘.
  3. Locate and check TFTP Client.
    Installing TFTP Client
  4. Click OK to install.
  5. Wait for the installation to finish.

This should be installed on systems not hosting the server.

Configure the Firewall to Allow TFTP 

After installing the TFTP client, either disable Windows Firewall or add an exception for TFTP connections:

  1. Open Control Panel from the Start Menu.
  2. Set View by to Large Icons and select Windows Defender Firewall.
  3. Click ‘Turn Windows Defender on or off‘ to disable the firewall.
  4. Select ‘Turn off Windows Defender Firewall‘ for both settings and click OK.
    Turning off Windows Defender Firewall
  5. To keep the firewall on, add an exception by clicking ‘Allow an app or feature through Windows Defender Firewall‘.
  6. Click ‘Change settings‘, then ‘Allow another app‘ and click Browse.
  7. Find TFTP.exe in the Windows system32 directory, select it, and click Open.
  8. Check the Private and Public boxes and click OK.
    Allowing TFTP Through Firewall

Transfer Files using TFTP

To transfer files after installing the TFTP client and forwarding UDP port 69:

  1. Press Windows Key + R, type ‘cmd‘, and press Enter to open the Command Prompt.
  2. Ensure the files to be sent are in the Server Root Directory.
  3. Use the following command format to send or receive files:
    Tftp -i [server IP address] [GET or PUT] [path of file]
  4. Example to send a file:
    Tftp -i 192.168.10.8 put E:\hello.txt
    Sending a File Using TFTP
  5. Example to receive a file:
    Tftp -i 192.168.10.8 get hello.txt
Receiving a File Using TFTP
Note:

For remote file transfers, use this format:

Tftp -i [public IP]:[port] [PUT or GET] [path of file]

Example:

Tftp -i 39.43.126.2:69 put E:\hello.txt
ABOUT THE AUTHOR

Kamil Anwar


Kamil is a certified MCITP, CCNA (W), CCNA (S) and a former British Computer Society Member with over 9 years of experience Configuring, Deploying and Managing Switches, Firewalls and Domain Controllers also an old-school still active on FreeNode.