Ftp server setup on windows 10



In order to successfully set up an FTP server on windows 10 you'll need to do the following.

  1. Assign a static ip address to the computer running the FTP server via the DHCP Server running in your router.
    1. Enable your DHCP server
    2. Set the starting ip address
    3. Set the number of ip addresses
    4. Assign an ip address to the mac address the FTP server is running on
  2. Forward ports in your router.
    1. Forward a single port, port 21,  to the static ip address you set up in step 1.4 and set the protocol to TCP
    2. Forward a range of ports (in this tutorial we'll use ports 50000 - 51000) to the static ip address you set up in step 1.4 and set the protocol to TCP
  3. Set up an inbound rule in the windows 10 firewall to allow your FTP server program to pass through, and set the protocol to TCP
  4. Install the FTP server and adjust its settings
    1. Set the port for the admin interface (this tutorial sets the port to 14147)
    2. Set the single port for FTP to listen on (same port as step 2.1)
    3. Set the custom port range (same port as step 2.2)
    4. Set the public ip address
    5. Generate a certificate for FTP over TLS
    6. Assign a user and password

In part one, you'll learn how to assign a static ip address on the computer running the FTP server. You'll also learn how to forward ports on your router.

Explanation: If your router is set up as a DHCP (dynamic host control protocol) server (which it probably is) your router will assign an ip addresses automatically (randomly) to devices connected to your local area network (LAN).

So lets say that you have two devices connected to your LAN. When you start or boot up device number one, it will connect to the router and the DHCP server will assign that device a random ip address, for example, Then, lets say you boot up device number two, which also connects to your router and the DHCP server assigns it an ip address of, for example

Now lets say that you shut down both devices and then restart them in reverse order. Now device number two may receive an ip address of and device number one will receive an ip address of So if your ftp server is running on device number one and it shuts down, or you reboot it, it may not receive the same ip address from the DHCP server from your router. And because you need to forward a port to that device in your router (more on this later) you'll need to assign that device a static ip address so that it won't change on reboot.

How to assign a static ip address to your device

If you already know how to login to your router you can skip steps 1-5, otherwise, you'll first need to find the mac id (Media Access Control) for your network card.

  1. Open the Command prompt by right clicking on the windows icon in the task bar, choose the run option, then type "cmd" (without the quotes) in the run dialog box.

    screenshot of windows 10 run dialog box

  2. At the prompt, type "ipconfig /all" (without the quotes,  note: there is a space before the /all)

    screenshot of the windows command prompt

  1. A bunch of data will be displayed in the command prompt window. You will be looking for four things
    1. The Correct port
    2. The Physical Address
    3. The IPv4 Address
    4. And the Default Gateway
  2. Scroll down and look for the Ethernet adaptor port your using. If your connected to your router via. an Ethernet cable the port will start with "Ethernet". If your connected via. wi-fi the port will start with "Wireless" (the port i'm using is highlighted in white) You may have more than one port so make sure you choose the correct one. Now look for the line that reads "Physical Address". Next to that will be displayed your mac address (highlighted in red). It will be in the hexadecimal format. Look for your IPv4 Address (highlighted in yellow) and finally look for the Default gateway (highlighted in blue)
    An example of the correct port will look similar to screen capture below.

    screenshot of the windows command prompt results

  3. Open a web browser and point it to the default gateway ip address (which is your router), in my case its

    screenshot of web browser pointing my default gateway

  4. You'll need to login to your router. I can't help you here. If you don't know your login credentials you'll need to do a search for the default login credentials for the particular make and model of your router.

    screenshot of a linksys router login page

  5. After you've logged into your router you'll be looking for your routers "DHCP Reservation" page. My Linksys pages are as follows. Click on the Connectivity link in the menu. Your router menu will look different than mine unless you have a Linksys router.

    screenshot of linksys menu page

  6. Click on the "Local Network" tab

    screenshot of linksys connectivity page

  7. Make sure that the DHCP Server is enabled. Notice that I set the "start ip address" to 1.100. I could have set it to 1.2 if I wanted, which would have allowed for more ip addresses. Also notice I'm limiting the number of ip addresses to 25. That is just my preference for my LAN. After you have added your starting ip address click on the "DHCP Reservation" link below.

    screenshot of ip address range

  8. Here is where you add the static ip address for your network card. In my router all the devices found in my LAN are listed in the 1st table, so all I needed to do was to select the device and add it to the DHCP Reservation list. If your router does not populate your devices you'll have to manually enter your mac address (you found it from the command prompt window in step 4) and the ip address you want to assign for that device. Notice in the 2nd table, you can edit the device and change the ip address, as long as it's within the maximum ip range you set in the previous step. If you remember, I'm starting my ip range at 1.100 and limiting the number of ip addresses to 25, so my ip address range would be between to When your done, click ok to get back to the main menu.

    screenshot of DHCP Reservation list

  9. Now we need to forward the correct ports to to the right ip address. Open the "Security" tab in the main menu.

    screenshot of the Linksys routers main menu page

  10. Click on the "Apps and Gaming" tab in the Security page

    screenshot of the Linksys router security page

  11. In the Apps and Gaming page click on the "Single Port Forwarding" link.

    screenshot of Linksys router Apps and Gaming page

  12. Click on the "Add a new Single Port Forwarding" button to forward a port.

    screenshot of the Linksys single port forwarding page

  13. Enter a name for the application, it can be anything you want, however, the name should be something you or others would recognize. Next, use 21 for the external port number (port 21 is the default ftp port number). For the protocol, select "TCP". FTP doesn't use UDP so don't select "both". Next, assign the ip address that you want to forward the port to. It needs to be the ip address you assigned to the mac address in step 10, and that machine will be running the FTP server. Save your settings and then click apply.

    screenshot of forwarding a port in a Linksys router

  14. Next you need to forward a range of ports for the ftp server to listen to. Click on the "Port Range Forwarding" link

    screenshot of a Linksys router Port Range Forwarding page

  15. On the Port Range Forwarding page click on the "Add a new Range Forwarding" button.

    screenshot of a Linksys router Port Range Forwarding page

  16. Give the Application A name. Enter a range of ports. The range has to start above 1024 and below 65,535. You can see I am listing on 1,000 ports. It could be less or it could be more. Choose "TCP" for the protocol, not both. Remember FTP doesn't use UDP so don't choose that protocol. Next, you need to assign the ip address. Use the same ip address you used in the "Single Port Forwarding"  (step 15). It needs to be the ip address that the FTP server will be running on. Make sure that the ports are enabled and save, then Apply then Ok.

    screenshot of the Add Port Range Forwarding in a Linksys router

  17. Now, in order for the router to assign the ip addresses you just set up, you need to Reboot your computer.

  18. To check that the ip addresses were assigned successfully, repeat steps 1-4.

In Part 2 we'll install the FTP server and set up the windows firewall