Как поднять tftp сервер на windows 10

Логотип TFPT64

Для некоторых айтишных задач требуется поднять tftp-сервер, который обычно предназначен только для простой передачи файлов между устройствами. TFTP изначально так и разрабатывался, чтобы быть простым. Прочитать о его работе можно на Wikipedia.

Мне понадобился сервер tftp для того, чтобы слить настройки с уже настроенного коммутатора Cisco и при необходимости залить его обратно.

Для справки: tftp – это протокол передачи данных, который работает на транспортном протоколе UDP на порту 69. Особой безопасности не предоставляет. Используется для загрузки бездисковых систем (нужен для загрузки первоначального загрузчика) и для обновления прошивок аппаратных sip-телефонов Cisco.

Этот протокол чувствителен к фрагментации сетевого пакета. Если фрагментация есть, то файл может передаваться не до конца. Чтобы проверить делятся пакеты или нет, нужно выставить правильное MTU. На Windows это можно сделать программой TCP Optimizer. Подробнее о программе и настройке MTU здесь.

Есть две версии приложения:

  1. tftpd32 — для 32-битной системы windows;
  2. tftpd64 — для 32-битной системы соответственно.

Данный tftp-сервер можно установить как для старой Windows XP, так и для современной Windows 10. На серверные ОС (Windows 2012 r2, Windows 2016 и др.), tftpd64 и tftpd32 встают тоже без проблем.

Порт tftp сервера по умолчанию — 69/UDP. Если подключение проходит через маршрутизатор, не забываем открыть 69 порт UDP протокола.

Установка tftpd32 сервера на Windows

Для таких простых целей я выбрал замечательное приложение tftpd32/tftpd64. Найти его можно здесь.

Для того, чтобы развернуть tftp-сервер на своем рабочем месте необходимо:

  1. Загрузить нужный дистрибутив отсюда. Стоит обратить внимание, что дистрибутивы различаются по типу запуска: как службу (service edition) и как приложение (standard edition) и также по битности ОС. Для себя я выбрал пакет tftpd64 service edition (installer)
  2. После загрузки, устанавливаем загруженный дистрибутив, не изменяя абсолютно никаких параметров.
  3. Если Вы загрузили, как и я, дистрибутив с запуском в качестве службы, то стоит вручную запустить службу или просто перезапустить компьютер.
  4. Дальнейшей настройки этот сервер не требует, но для подстраховки все настройки должны выглядеть так как изображено на скрине:

Интерфейс программы TFTP64

Всё! Теперь можно подключаться к tftp и копировать файлы. У операционной системы Windows XP tftp-клиент установлен по умолчанию, а у Windows 7/8/10 его необходимо доставить через компоненты системы.

Как проверить работу сервера tftpd32?

Для того, чтобы передать файл необходимо открыть cmd.exe и выполнить команду:

tftp 192.168.1.10 GET имя_файла.txt

Для того, чтобы получить файл с tftp-сервера, есть команда:

tftp 192.168.1.10 PUT имя_файла.txt

Использовать tftpd32/tftpd64 для каких-то постоянных задач не рекомендуется, так как у него практически нет никакой защиты от несанкционированного подключений к серверу. Да, можно ограничить доступ к нему только определенным IP-адресам, но та легкость, с которой можно подменить IP-адрес, позволяет сказать, что это не относится к сетевой безопасности вообще.

Включать сервер tftp с таким «уровнем безопасности» можно только на короткое время, для выполнения каких-то сервисных работ, а лучше вообще делать это в изолированной сети.

Теги: cisco

и сеть

Комментарии

Сервер TFTP предназначен для управления загрузкой бездисковых ПК (рабочих станций), но также эффективен для передачи файлов между удаленными системами. Этот упрощенный протокол передачи файлов очень прост в использовании.

Альтернатива домашней сети

Домашняя группа Windows была удобным инструментом для обмена файлами по сети. Но была исключена с обновлением Windows 10 до версии 1803. Для замены можно использовать TFTP-сервер, который интуитивный в настройке, достаточно надежный и позволяет передавать данные на быстрой скорости.

Перед настройкой сервера TFTP нужно выполнить следующие действия:

  1. Войдите в систему под учетной записью администратора.
  2. Загрузите установщик TFTP-сервера компании SolarWinds. После распакуйте загруженный zip архив в любое место на диске и установите программу, следуя инструкциям на экране.
  3. Чтобы разрешить удаленный доступ к серверу, нужно переадресовать UDP-порт 69 на IP адрес домашней сети. Но, если удаленное подключение не требуется, то переназначать порты не нужно.

Если разрешили доступ к TFTP-серверу за пределами локальной сети дома, офиса и другого места, проверьте, что статический или динамический IP добавлен в диапазон адресов. По умолчанию на сервере разрешены все IP адреса для передачи и получения файлов, а также перенаправление портов. Можно ограничить диапазон IP, чтобы разрешить только несколько адресов.

Для настройки сервера следуйте инструкции:

  1. После запуска утилиты SolarWinds TFTP Server, перейдите в File — Configure. Для отображения иконки в правом нижнем углу на панели задач отметьте флажком поле «Добавить сервер в системный трей Windows».
  2. Выберите корневой каталог сервера. В нем будут храниться все отправленные и принятые файлы. Чтобы передать файлы, их нужно будет скопировать в этот каталог.
  3. Перейдите на вкладку Безопасность, чтобы ввести некоторые ограничения. Здесь можно включить прием или передачу, разрешить определенный диапазон IP или только один адрес.
  4. После нажмите на ОК, чтобы сохранить настройки, и закрыть окно конфигурации.

Как пользоваться TFTP сетью

Если нужен доступ из устройств за пределами сети, потребуется переадресация порта 69. Поскольку экраны настроек разных моделей маршрутизаторов отличаются, предлагаем вам базовое представление.

  1. Нужно войти в панель конфигурации роутера с адресной строки браузера и ввести логин и пароль, которые указаны в инструкции к устройству.
  2. Откройте расширенные настройки и найдите NAT или Port Forward.
  3. Сделайте новую запись и перенаправьте UDP порт 69 на ipv4-адрес.

Если не собираетесь передавать файлы из компьютеров за пределами вашей домашней сети, процедуру с перенаправлением портов можно пропустить.

Конфигурация клиента TFTP

Перейдем к установке клиента на удаленном или локальном компьютере.

  1. Откройте панель управления и перейдите в раздел «Программы и компоненты».
  2. С левой стороны экрана кликните на пункт «Включить или выключить компоненты Windows».
  3. Найдите в списке клиента TFTP и установите флажок. Подтвердите изменения на ОК.

Помните, что установку клиента нужно произвести на компьютере, на котором не запущен сервер TFTP.

Настройка брандмауэра

После установки клиента нужно либо отключить Брандмауэр Windows, либо добавить исключение для соединений TFTP.

  1. Откройте панель управления, измените просмотр на крупные значки и выберите Брандмауэр Windows.
  2. С левой стороны нажмите на кнопку «Включение или выключение брандмауэра Windows».
    Переключите флажки в двух секциях в положение «Отключить».
  3. Если не хотите полностью отключать эту функцию защиты, можно добавить исключение для соединений TFTP. Для этого вернитесь в предыдущее окно и выберите «Разрешить запуск программы или компонента через брандмауэр».
  4. Нажмите на кнопку «Разрешить другую программу», затем на «Обзор». Найдите и добавьте исполняющий файл TFTP.exe, который находится в каталоге Windows\System32.
  5. Установите флажки в полях «частная» и «публичные» и нажмите на ОК.

Как передавать файлы в сети TFTP

После установки клиента и перенаправления порта перейдем к передаче файлов. Убедитесь, что сервер запущен, затем следуйте инструкциям:

Нажмите Win + R, в диалоговом окне наберите cmd для вызова командной строки. Перенесите или скопируйте файлы, которые хотите передать, в корневой каталог сервера.

Для отправки файлов нужно использовать параметр PUT, при получении GET. Синтаксис команды выглядит следующим образом:

Tftp -i [server IP address] [GET или PUT] [путь к файлу]

Например, для передачи используйте команду:

Tftp -i 192.168.10.3 put E:\file.txt

Если хотите получить файл, то команда будет выглядеть:

Tftp -i 192.168.10.3 get file.txt

Если хотите переслать на удаленное устройство за пределами сети, нужно указать публичный IP-адрес в командной строке, а затем порт. Примером может быть:

Tftp -i 39.43.126.2:69 put E:\file.txt

TFTP – упрощённый протокол передачи данных (о чём и свидетельствует первая буква аббревиатуры протокола, Trivial), характеризующийся простотой реализации и имеющий ряд ограничений, главное из которых – отсутствие аутентификации. По этой причине он не столь распространён, как FTP, но существует немало примеров, когда его использование оказывается более предпочтительным.

TFTP сервер на Windows 10

Например, в закрытой локальной сети для загрузки операционной системы на рабочие станции, из соображений безопасности или по другим причинам не содержащие собственного жёсткого диска. И хотя здесь имеются кое-какие риски, их можно компенсировать фильтрацией по IP-адресу с использованием транспортного протокола UDP.

Как установить TFTP-сервер на Windows

Протокол Trivial FTP, как вы уже знаете, является очень простым в реализации, и если говорить о низкоуровневой передаче файлов, при условии отсутствия жёстких требований по безопасности, то он был и остаётся весьма востребованным.

Кроме загрузки ОС на рабочие станции, он широко используется для загрузки и модификации конфигураций множества встроенных устройств, являющихся частью домашних сетей и системы «Умный дом».

Протоколы TFTP сервера

В частности, этот протокол нередко можно встретить на маршрутизаторах, в мобильных телефонах, в популярных медиа-стримерах. Он используется для передачи единичных файлов на относительно небольшие расстояния. А вот в глобальных сетях, том же интернете, использование TFTP недопустимо из-за низкой защищённости. Там царствует FTP, а если требуются повышенные требования к безопасности, то SFTP.

Если при помощи FTP, требующего ввода логина/пароля, можно осуществлять целый спектр операций с файлами (передача в обоих направлениях, переименование, удаление, просмотр), то в TFTP вы можете файлы только скачивать, и только по одному. Зато здесь используется стек UDP, отличающийся простотой кода, в отличие от распространённого, но достаточно сложного TCP/IP.

Работа TFTP сервера

У протокола TFTP низкая функциональность компенсируется надёжностью, поэтому серверная часть кода протокола занимает на диске или в памяти очень мало места, что делает его идеальным кандидатом для использования во встроенных устройствах, у которых дефицит памяти – привычное явление.

Итак, если суммировать, для чего нужен клиент TFTP, то можно утверждать, что главное преимущество протокола – простота реализации его клиентской части.

ВНИМАНИЕ. Протокол не предусматривает наличие учётных записей пользователей, поэтому всегда существует риск подключения к TFTP серверу или клиенту других лиц, в том числе и со злонамеренными целями. Поэтому использовать его нужно, если сеть защищена другим способом, например, файерволом.

Хотя TFTP-сервер чаще всего можно встретить в ОС Linux, существует немало решений, предназначенных для Windows и даже для macOS (TFTPD32/64, haneWIN, WhatsUp, WinAGents и др.).

Скачивание TFTPD64

Рассмотрим процедуру установки TFTP-сервера на примере весьма популярной утилиты TFTPD32, созданной на условиях открытого исходного кода. Кроме собственно TFTP-сервера, она включает и другие серверные протоколы (DHCP, DNS, SNTP) и позволяет управлять пулом IP-адресов. Разумеется, ситуации, когда требуется наличие всех перечисленных функций, сложно придумать даже теоретически, но дополнение TFTP одной из них вполне может оказаться полезным.

При скачивании программы можно выбрать portable-версию, если не хотите возиться с инсталляцией.

Лицензионное соглашение TFTPD64

При запуске утилиты нужно будет указать пару параметров:

  • каталог, куда будут скачиваться файлы (дефолтный путь – место установки программы);
  • IP-адрес сервера, на который нужно будет обращаться клиентам.

Установка компонентов TFTPD64

Для выполнения простейших операций этого будет достаточно. Но в ряде случаев потребуется дополнительная настройка программы.

Путь установки TFTPD64

Если требуется использование DHCP сервера, например, для выдачи динамических айпишников в пределах малой сети, необходимо зайти в раздел Setting и выбрать вкладку DHCP.

Переход во вкладку настроек TFTPD64

Здесь нам нужно указать:

  • исходный IP адрес (получаемый на маршрутизаторе);
  • диапазон выдаваемых клиентам адресов;
  • указание шлюза сети не является обязательным;
  • четвёртый параметр – маска подсети.

Подтверждаем внесение изменений нажатием ОК.

Вкладка «DHCP» в программе TFTPD64

Поскольку в основе TFTP лежит использование транспортного протокола нижнего уровня UDP, в котором установление соединения не предусмотрено, задача эмуляции соединения становится прерогативой внешнего протокола, в нашем случае – TFTP. Проблема в том, что межсетевые экраны в большинстве случаев не умеют идентифицировать соединения, инициированные протоколом TFTP, так что этот тип трафика он пропускать не в состоянии.

Подтверждение изменения настроек в TFTPD64

Но если TFTP-сервер располагается в пределах защищённой сети, а клиентские устройства – перед файерволом, то проблем быть не должно, но потребуется внесение изменений в настройки файервола:

  • нужно добавить правило транспортировки пакетов данных из внешнего айпишника на адрес сервера TFTP, указанный в конфигурации программы (через порт 69 TFTP сервера);
  • разрешить перенаправление трафика из внутренней сети на внешний IP-адрес.

Переход в Брандмауэр Защитника Windows

Раздел разрешения взаимодействия с приложениями и компонентами

В большинстве маршрутизаторов при передаче данных с более защищённой сети в менее защищённую проблем не возникает, но, когда требуется выполнить противоположную задачу, как раз и потребуется выполнение перечисленных выше действий.

Кнопка «Изменить параметры»

Кнопка «Разрешить другое приложение»

Проблема в том, что не все сетевые роутеры/маршрутизаторы позволяют выполнить такие настройки. Но многие из них оснащены функцией просмотра трафика, направляемого с использованием протокола TFTP, при этом они в состоянии динамически изменять таблицу трансляции, позволяя пропускать пакеты извне, идущие в локальную сеть. Так, чтобы настроить файервол маршрутизатора Cisco PIX, необходимо выполнить команду fixup protocol tftp.

Кнопка «Обзор» в окне «Добавление приложения»

Выбор приложения TFTPD64

Существует альтернативный способ решения проблемы: можно обязать сервер TFTP задействовать порт 69 в двух направлениях, не только для приема запросов, идущих от клиентов, но и для пересылки им ответов. Тогда файервол сможет корректно обрабатывать оба типа запросов, руководствуясь записями, имеющимися в таблице трансляций.

Кнопка «Добавить» в окне «Добавление приложения»

Завершение добавления приложения TFTPD64 в исключения

Так, чтобы настроить WinAGents TFTP Server подобным образом, необходимо в настройках программы установить галочку напротив опции Enable firewall support.

Скачивание WinAGents TFTP Server

Проверка работоспособности TFTP сервера

Чтобы проверить, работает ли TFTP сервер, необходимо просто выполнить копирование файла с сервера на клиентское оборудование.

Для этого нужно запустить консоль на клиенте, а затем выполнить команду tftp 192.168.1.35 GET <имя копируемого файла>. Если всё настроено правильно, после паузы, во время которой и происходит передача данных, указанный файл должен появиться на клиентском оборудовании.

Команда для передачи файла

Отметим, что копирование будет производиться в каталог, в котором запускалась консоль, если в настройках программы не указан другой путь. Но не все утилиты имеют такие настройки. Например, если вы используете WinAGents TFTP Server, вам нужно будет выполнить последовательно две команды:

  • cd <путь назначения>;
  • tftp168.1.35 GET <имя копируемого файла>.

В этом случае копирование будет производиться в указанную вами директорию.

В утилите TFTPD32 копирование будет выглядеть несколько иначе. На клиентской машине следует запустить приложение, открыть в нём вкладку TFTPClient, а затем указать IP-адрес сервера, а затем имя файла, который мы намереваемся скачать. Сохранить его можно и под другим именем, указав его в соответствующей строке настроек. Завершив все приготовления, жмём кнопку GET и дожидаемся результатов операции.

Копирование файлов в утилите TFTPD64

Как видим, использование TFTP сервера не ставит перед пользователем неразрешимых задач, за исключением случаев, когда требуется доступ за пределы локальной сети. Но для этих случаев существуют другие, более защищённые и безопасные сетевые протоколы.

When transferring files across a network then TFTP is a good solution due to its ease of use and easy configuration.

TFTP, or Trivial File Transport Protocol, is a way of sending and receiving files over the internet. It is especially useful in situations where the remote computer that is receiving the file is unmanned.

This makes sending files very easy and does not require human intervention on the other end if configured correctly. The downside is that the protocol is not secure. (If security is a concern then you should look at transfer methods that use encryption.)

If you do a lot of file transfers over your home or business network, then TFTP is a good way to go.

In order to demonstrate this method of file copying and transferring,  we will be using a free TFTP tool provided by SolarWinds TFTP. It is a quick and easy way to get the job done, so we will be downloading it from here.

Best of all is that this app is free, so using it will certainly not break the bank. Let’s get started.

via SolarWinds.com 100% Free

After you download, install the package on your PC and lets get started with the configure.

Before We Begin:

There are a couple of things that we need to do before we can get started. This is all very easy to do so don’t let these steps scare you off. The whole process should only take a few minutes and is very simple to get done. You will therefore need:

  • Access to the Administrator account:
    This is easy to do. If you are the only person using your computer then the chances that you are the administrator of your account is pretty high.
  • Download and Install SolarWinds TFTP Server:
    In order to use the SolarWinds TFTP Server we will obviously need to download and install it to the computer. The download link can be found above in the intro section.
  • You will need Port Forwarding for External Connections:
    If you are planning on using remote connections with your TFTP server then you will need to use port forwarding. UDP Port 69 is the port type and port number that you will need to use. It will need to point to the IP address of your server on your network from your router in order to allow users from outside of the network. If you only need internal connections, then don’t worry about this step as it is not needed.

Now we can get started with the rest of the setup!

What Kind of Connection Do You Need to Configure?

For external connections you will need to ensure that you configure the security settings appropriately in the application. You can select which IP addresses can send and receive files to help specify which valid hosts can transfer and receive.

Basic TFTP Server Setup

These steps will guide you through the setup process of SolarWinds TFTP Server. This will help you get the ball rolling and allow you to eventually make transfers across multiple networks possible.

  1. Open the SolarWinds TFTP application
  2. Next, click file -> configure.

  1. Choose the correct settings as highlighted in the following screen capture labelled 1, 2 and 3.
  2. 1 Shows the status of the TFTP service, 2 allows you to set the icon to appear in the taskbar and 3 is where the files will be stored by default. You can choose a different location if you want. We will be leaving ours as the default location but feel free to make any changes if you need to. A popular choice for example is the Downloads folder.

  1. The next step is locking down some security items. To do that, we need to go to the, you guessed it, security tab within the SolarWinds TFTP Server.
  2. This part is pretty self explanatory, but definitely worth looking into. We need to set the actions that we want this computer to be able to complete. If you are setting up permissions for a file server, then you might not want everyone to have access to send files to it, and instead you might only want it to server files and have them downloadable. If that is the case then you will want to choose send files. If you want to do both then select Send and Receive files.

  1. You can further lock down the security of your TFTP server by specifying which IP addresses are allowed to transfer files. You can do this by selecting a range of both IPv4 and IPv6 IP addresses. Our example uses IPv4 and allows 10 IP addresses to send and receive files across the network.

  1. We enter the range and then set the changes by clicking the OK button. Easy.

We have now configured our TFTP server in just a few simple clicks.

The Fun Part: Actually Utilizing Our New TFTP Server

The setup was pretty straight forward, and using the application is just as easy. Let’s go through the steps to make using our TFTP server a reality.

Port Forwarding Steps

This part is optional because you might not want to access your files from outside the network. This is understandable, especially because TFTP is not designed to be a secure protocol, just a convenient one. However, you can add mappings to port 69 in your router by either finding the NAT or Port Forwarding sections of your router. Each manufacturer is different, so be sure to consult your user manual when attempting to make changes to your router. If in doubt then contact your manufacturer’s support and see if they can assist you with the changes.
For everyone else, lets carry on with our tutorial!

Installing a suitable TFTP Client for Windows

The easiest way to continue is to use the default Windows TFTP that comes with the Operating System. To access it and install it onto our computer we need to do the following:

  1. Open the start menu and search for the control panel.
  2. Find Programs and Features and then click on Turn Windows features on or off.
  3. Find the TFTP client and click on the tick box so that the tick is visible.
  4. Next, Click on OK to install the client.
  5. Once finished, you have installed the client.

Important to note that this is the computer without the TFTP server application running, also known as the client PC.

Allow TFTP with a Firewall Configuration Change

There are 2 approaches to getting this right. The first and easiest way is to disable your Windows Firewall. This might be OK in a home setup where you trust all of your devices on the network, or in a corporate environment where management is conducted by the IT department. If you are not willing to do this, then we can create specific rules in our Windows firewall to allow traffic through.

  1. Click on the start menu and type in Control Panel, then click on that icon when it appears.
  2. Click on Windows Defender Firewall.
  3. Next, click on Turn Windows Defender on or off.
  4. Tick the boxes as seen below and then click ok
  5. You have now turned off you firewall.
  6. If you don’t feel comfortable turning off Windows Firewall we create an exception instead. To do this, we must click on Allow an app or feature through Windows Defender Firewall’ in the Windows Firewall settings.
  7. Click on the Change settings button to add a program.
  8. Next you must click on Allow another appand then hit Browse.
  9. Select exein the Windows system32 directory and also TFTPServer in the SolarWinds folder inside Program Files x86.
  10. Click open and it has been added.
  11. Tick the boxes called Privateand  To finish, click ok.

Transferring Files using TFTP

Let us now do some local tests with the following commands.

  1. Press the windows key or click on the start menu
  2. Type cmd and press enter
  3. You will see a black cmd terminal in front of you. This is where we will type in our commands.
  4. Change directories to the path where your files are stored for sending and receiving. Let us now send a file. To do this, we use the ‘put’ command.

tftp -i 192.168.31.46 put “Test_File”.mp3

  1. If you want to receive a file, then the command we will use is called ‘get’.

tftp -i 192.168.31.46 get “Test_File”.mp3

We can look at our TFTP Server logs that display when we open our server app and we are greeted with the following records:

Conclusion

Transferring files by using TFTP is easy, fun and free. By leveraging the free TFTP server from SolarWinds, we can turn any ordinary PC into a file server with remote access capabilities.

This is useful for many reasons, and we hope that the tutorial will help you to get the correct access levels set for your own specific needs. Be sure to download the app from above so that you can follow along with this tutorial.

Better yet, check out SolarWinds and look at the multitude of monitoring, troubleshooting and control software that they have on offer. You are bound to find the right tool for the job, regardless of what you are trying to achieve!

Happy file transferring, and we’ll see you next time.

TFTP Server FAQs

What is difference between FTP and TFTP?

FTP is the File Transfer Protocol – the original file transfer system for the internet. TFTP is the Trivial File Transfer Protocol. This is a lightweight service that is usually used on private networks for moving small files to devices. Both systems can be used to either send or fetch a file and neither system includes security features, such as data encryption. As such, neither of these systems should be used to send files to remote devices outside a private network – user SFTP or FTPS instead.

Why do we use TFTP?

The Trivial File Transfer Protocol (TFTP) is fast and feature-free. It does not include authentication procedures, which means it can be integrated into task automation scripts without the need to store passwords but that also means that it shouldn’t e used to move sensitive data. The access security of private networks provides sufficient protection to make TFTP safe to use. However, even in this location, the protocol isn’t a good option for data movements. TFTP is good for moving configuration files to devices and for gathering log files from endpoints on a network to a central location.

Does TFTP use UDP or TCP?

The Trivial File Transfer Protocol (TFTP) is a lightweight file transfer system and as such, can be considered to be a stripped-down version of the File Transfer Protocol (FTP). The lack of features in TFTP makes it quick and also easy to deploy from a script. TFTP lacks authentication and session features, which are hallmarks of UDP. TFTP connections are initially made to port 69. However, continued communication for a transfer is switched to a random ephemeral port – some TFTP implementations choose to use the same ephemeral port number for all of their transactions.

TFTP stands for “Trivial File Transfer Protocol” is a simple and lightweight protocol for transferring files over the network.

TFTP runs on UDP port 69 and does not use any security during the file transfer, thus its really only good for transferring files within your LAN. It is commonly used in the place where security is not important and it has limited features compared to other file transfer protocols (FTP/FTPS/SCP).

Generally, TFTP is used to boot operating systems over the network. CISCO devices also use the TFTP protocol to store configuration files and images and move them to and from switches, routers and firewalls.

It is very useful for electronics circuit boards and microprocessors to download firmware into the chipset and its also used for transferring boot files and updating NVRAM. It does not provide authentication and no command structure like FTP, SFTP and SCP.

TFTP cannot list directory and there is no error recovery like TCP and nor does it allow you to delete or rename files.

TFTP is used for its simplicity as it is specifically designed to read and write files without establishing a connection between the client and the server.

It is very useful for thin clients, terminals and disk-less workstations with no room to install their own operating systems.

TFTP protocol also allows the network clients to automatically obtain the IP address of the TFTP server thus making TFTP not only easy to implement but also provide a better way for file transfers.

However, sending or receiving sensitive files via the TFTP without authentication or encryption is very risky.

In this tutorial, we’ll learn how to setup a TFTP server and a TFTP Client on Windows a system and also learn how to configure your Firewall to allow file transfer between the TFTP server and the TFTP client.

Install TFTP Server Windows

First, you will need to download the SolarWinds TFTP server.

Download: https://www.solarwinds.com/free-tools/free-tftp-server/registration

SolarWinds TFTP Server
Get 100% FREE Download

Once downloaded, extract the downloaded file and double click on the installer to start the installation, you should see the following screen:

TFTP install

Click on the Next button.

You will be redirected to the License agreement page as shown below:

Accept the License agreement and click on the Next button.

You will be asked to provide the location of the TFTP server as shown below:

Click on the Next button to continue with the default location.

You should see the following page:

Click on the Finish button to complete the installation.

After installing the TFTP server, you will need to configure it.

You can follow the below steps to configure the TFTP server:

Configure TFTP Server

1. Open the TFTP Server from the Start Menu as shown below:

2. Click on the File => Configure button as seen in the above Screenshot.

You should see the following screen:

3. As seen in the screenshot above, Select the TFTP Server Root Directory field and provide the TFTP root directory, then click on the Security tab.

You should see the following screen:

4. In the Permitted Transfer Types section, check the box “Send and Receive files” and “Allow All IP address to send/receive Files” and click on the OK button to finish the configuration.

Once you are finished, you can proceed to the next step.

Install TFTP Client

At this point, the TFTP server is installed and configured.

Now, you will need to install a TFTP Client on the Client computer.

You can install the TFTP Client on the client computer by following the below steps:

1. Click on the Start Menu and click on Control Panel.

2. Click on the Programs and Features => Turn Windows features on or off. This will open the Windows Features dialog box.

3. Scroll down until you see the TFTP Client check box and CHECK it as shown below:

4. Click on the OK button to start the installation process of the TFTP client.

This process will take some time to finish the installation. Once you are finished, you can proceed to the next step.

Configuring Firewall to Allow TFTP

Before using the TFTP client, you will need to turn off the Windows Firewall or configure the Firewall to allow the inbound/outbound transfer of files using the TFTP client.

You can follow the below steps to add an exception for the TFTP connections:

1. Go to the Start Menu and open the Control Panel as shown below:

configure firewall

2. Click on the Windows Firewall to open the firewall as shown below:

windows firewall

3. In the left-pane, click on the “Allow an app or feature through Windows Firewall“.

You should see the following page:

Allow an app or feature through Windows Firewall

4. Click on the Allow an app or feature through Windows Firewall at the bottom. You should see the following page:

Allow an app or feature through Windows Firewall

5. Click on the Browse button and specify the TFTP.EXE path and click on the Add button.

You should see the following page:

find path to TFTP.exe

6. You should see that the Trivial File Transfer Protocol App should be highlighted.

7. Now, click on the OK button to finish the process.

At this point, your client computer is configured to allow PUT and GET command against your TFTP server.

Transfer File with TFTP Client

You are now ready to transfer file using the TFTP client.

Go to the TFTP client computer, open the command line interface and run the following command:

tftp

You should see all the options available with tftp command in the following page:

tftp command line example

If you want to send a file to the TFTP server, use the following syntax:

tftp your-tftpserver-ip put location-of-the-file

For example, to send the file named testfile.txt located in Documents directory to the TFTP server run the following command:

tftp 172.31.14.171 put Documents/testfile.txt

Once the file transfers successfully, you should see the following output:

Transfer successful: 73 bytes in 1 second(s), 73 bytes/s

If you want to transfer file from the TFTP server to your local computer, use the following syntax:

tftp your-tftpserver-ip get location-of-the-file

For example, transfer the file named testfile.txt from the TFTP server to your local computer run the following command:

tftp 172.31.14.171 get testfile.txt

Once the file transfers successfully, you should see the following output:

Transfer successful: 73 bytes in 1 second(s), 73 bytes/s

Example Screen:

tftp file transfer success command line

You can also transfer the files over the internet using the Public IP address of the TFTP server – Please remember, there is not encryption or any security when sending over the Internet!

Conclusion

In the above guide, we’ve learned how to install and configure the TFTP server and Client on Windows system.

You can now easily transfer files to and from your TFTP server for FREE.

Please Feel free to ask us any questions below in the comments, we’ll try to answer them immediately!

  • Как подключиться к шаре windows из linux
  • Как поднять ftp сервер на windows server 2019
  • Как поднять postgresql на windows
  • Как поднять dns сервер на windows server 2019
  • Как подключиться к файловому серверу windows 10