How to set up smartphones and PCs. Informational portal
  • home
  • Mistakes
  • Installing an ftp server. How to create an FTP server and make it accessible from the Internet

Installing an ftp server. How to create an FTP server and make it accessible from the Internet

If you are referring to articles of this kind, then it most likely does not make sense to once again remind you of the essence and purpose of such servers, but for the sake of formality it is worth clarifying that File Transfer The Protocol uses port 21 by default and can be used for browsing by an Internet browser or by most file managers, including Windows Explorer.

Continuing the obligatory introduction, let me remind you that for normal operation on the local network, you will need to open port 21 in the Fierwall’e server computer(obviously, the one on which you will configure), and for access from an external network, you also need to forward this port on the router. Last reminders are necessary for happy owners of firewalls and routers. So, if you use these programs and devices, it will not be superfluous to read the instructions and complete the setup.

Let's start by making sure that our operating system is generally able to do this kind of work. To do this, we simply look at the name of the assembly and consider everything above the Home version to be suitable for our needs.

Step one.

We find the item “Programs and Features” in the control panel and in it we go to the item “Turn Windows features on or off”

step two

The menu that opens will offer us a list of components from which we must find and enable " IIS"And all its subservices. It needs to be like this:

Click OK and wait for Windows to complete the installation.

Step Three

Now we need to start our server directly. In all the same control panel we find the item "Administration", and in it "dispatcher IIS »

In the window that opens, in the left column, open the tree up to the "Sites" tab and click on this tab right key. Select "Add FTP Site"

Then we set the name of the site and the directory to which the ftp protocol will physically access

Next, the server startup parameters are defined, and to simplify access, it is worth specifying the launch without SSL. Whether to run it at system startup and whether to bind it to specific address remains at your discretion.

On the next page put a tick in front of "Anonymous" and "Plain" and click ready.

On the this moment FTP - the server is ready, but in order for us to use it, we will continue the configuration.

Now let's configure the Windows firewall

"Control Panel"→ "Windows Firewall"

Here we go to advanced options.

Then you need to enable 2 rules for incoming connections

    FTP server ( incoming traffic)

    FTP server traffic in passive mode (incoming FTP traffic in passive mode).

For outbound connections in the firewall, you need to enable the following rule " FTP server traffic (FTP outgoing traffic).

Step five

Now you need to create a user to work with the server. Why do we open system console. Press the key combination Win + R and enter in the field " mmc»

in the console that opens, press Ctrl + M or the menu "file" - "Add or remove snap-in". A menu will open where you need to add " Local Users and groups"

If you did everything correctly, you will get a window like this:

Now let's create a group for our FTP server user.

Click right click click on "Groups" - "Create a new group"

We give the command "create" and proceed to create a user.

Now we need to bind our user to the previously created group. To do this, go to the user properties on the "membership in groups" tab. There we press the button "add" and "advanced" - "search". Now we add the group that we created a couple of minutes ago.

Step Six

We need to specify group permissions for the directory that we specified when creating the server. To do this, open its properties on the "Security" tab and click the "Edit" button:

Click the "Add" button and add the group that we created. We give the group full access by checking the corresponding checkbox at the bottom of the window:

step seven

Let's go back to the FTP server settings

Go to "Authorization Rules" FTP » and create an allow rule, where in We select "The specified roles or user groups" and prescribe the name of our group. Give this group read and write permissions and click OK.

Your FTP server is now set up and ready to go. Don't forget to check your Firewall and router for open ports for the site and you're good to go.

FTP servers - rare guests on home computer. But sometimes they need to organize general access to files for computers that cannot be connected to a local network, “raise” a small website with file storage or a home media server. The tasks of flashing or restoring various network machinery, media players and set-top boxes after “scaling” are of particular note. Solving these problems requires mastering the principles of FTP. The price of the wrong decision can be high, so it is important to carefully study the material.

FTP, TFTP servers: description, operation, configuration

FTP (File Transfer Protocol) is one of the oldest computer protocols, which began to be used for receiving / transmitting data at a distance. Servers with its use were actively used long before the advent of the Internet. The protocol has now been modified to use TCP/IP channels. The protocol uses a client-server architecture, that is, one program is used to organize the server, and another program is used to upload and download.

How to run an FTP server through Golden FTP Server

Configuring and configuring an FTP server using Windows 7 is a reliable but slow method that requires a large number qualified actions. If you need a server "for yesterday", but you don't want to mess around with instructions and settings, then using the compact and very simple Golden FTP Server program is a good option. It exists as a free and professional version, although the first option will be sufficient for domestic applications. Despite the modest size of the distribution, the program has a number of advantages:

  • ease of setup and small size of installation files;
  • using the full speed of the Internet channel. Although this may be a disadvantage, since when 50–100 users are connected at the same time, the program will put the channel on the blades along with the corporate network;
  • the ability to resume files when the connection is broken. To take advantage of this feature, you need to use an FTP client that also supports resuming files;
  • Russified interface by default.

After downloading and installing the distribution, configure the program to start the FTP server.

The address obtained using the Golden FTP Server is available only within the network. If you need to provide access to the server via the Internet, you will have to set routes and port forwarding through the router's web interface.

For ease of use and configuration, you will have to pay extremely low level the security of such a server. Use the servers created in this way only in home network without giving them access from the Internet.

How to open an FTP server in File Explorer

Since ancient Windows 98, the operating system has blurred the boundaries between File Explorer and the Internet browser. Explorer allowed you to open pages directly in your window, but this required the inclusion of an unreliable at that time Active Desktop, therefore, the mechanism did not receive much distribution in those days. Technology has not stood still, and now you can safely access the FTP server by entering its address in Explorer:


Large files should not be downloaded, since Explorer does not support resuming data when the session is terminated. To do this, use FTP clients with the ability to resume.

What to do if the FTP server does not open

The inability to access the FTP server can be due to several reasons, related both to the settings of the computer itself and to policies within the corporate network.

Table: Common Causes of FTP Server Access Errors and Solutions

CausePossible Solution
Incorrect username or password (no password) with which an attempt is made to access the resource.Please try again with the correct password pair. Remember that many corporate resources FTP does not support guest login.
Access is provided by a third-party program that is not added to the firewall exception list, and it blocks outgoing client requests.Add the client program to the firewall exception table.
Port 21 TCP/IP, through which FTP resources are accessed by default, is blocked by the router settings. Alternatively, the server can be configured to work on a different port. You need to find out from the resource administrator with which one.Using your router's web administration panel, change its settings so that it can work with port 21 or another port that is used by the server.
promotional tariff plan your Internet service provider does not allow you to work with a number of Internet protocols, including FTP.Take care of a more expensive tariff plan. Many providers provide the facilities needed to run an FTP server ( static address, permission for incoming requests, scripts) only in expensive corporate plans.

How to configure and run an FTP server using the built-in tools of windows 7

Many software packages can be downloaded from the web to create FTP servers. But first, try configuring the server using the built-in features of the operating system. The tools for creating web servers integrated into the distribution kit are available in Windows 7 Basic and higher.

If you have Windows 7 installed home edition or Starter, you will have to use software packages third party developers or upgrade your operating system to Windows versions 7 Basic and above.

The following instructions will guide you step by step through all the steps of starting an FTP server. During the setup process, you may need a distribution kit of the OS you have installed on optical media or flash drive. You will also need to log in to the OS as a user with administrator rights.

  1. Open the "Control Panel" and select "Small Icons" in the "View" setting.
  2. Go to the "Programs and Features" section, then to the "Turn Windows features on or off" subsection.
    Go to the "Programs and Features" section - it contains the subsection "Turn Windows features on or off"
  3. Set checkboxes:
  4. Click OK and wait for the process to complete. Wait for the component installation process to complete
  5. Go to the "Administration" section in the "Control Panel".
    The "Administration" section contains tools for configuring the server
  6. Select the IIS Manager tool.
    Open the "IIS Manager" - this is the main element of the FTP server
  7. Go to the Sites tab. In IIS Manager, go to the Sites tab
  8. Right-click on the "sites" tab and select the "Add FTP site" action from the drop-down menu. From context menu tab "sites" select the action "Add FTP site"
  9. Specify the name of the future FTP site and the path to the directory whose contents you are going to distribute from the FTP server.
    By default, the "Physical Path" field is set to C:\inetpub\ftproot - you can change it to your own
  10. Click "Next" and specify the parameters for launching the FTP site. If you do not want the site to start automatically when you turn on the computer, then uncheck the "Start the FTP site automatically" checkbox.
    Configure FTP Server Startup Options
  11. In the SSL section, select "No SSL". Click Next, then click Finish.
    In the "Authentication and Authorization Details" window, just click the "Finish" button
  12. You have successfully created an FTP site. Now go to the path "Control Panel"> "Firewall"> "Advanced Settings"> "Rules for incoming connections."
  13. Select and activate the FTP Server Passive (FTP Passive Traffic-In) and FTP Server (Incoming Traffic) items.
    To activate a rule, place the cursor on it and click the "Enable Rule" button in the right menu
  14. Go to the "Rules for outgoing connections" section and enable FTP rule Server (FTP Traffic Out).
    Activate the FTP Server (FTP Traffic-Out) rule in the Outbound Rules section
  15. Go to Control Panel>Administrative Tools>Computer Management>Local Users>Groups. Right-click on the "Groups" option and select the "Create Group" action.
    Create a group of users who can access your FTP server
  16. Specify the name of the FTP group and click "Create".
    Come up with a name for the user group
  17. Right-click on the "Users" section and select the action " New user» from the context menu. Create users to be included in your group
  18. Enter a username and password (at least 8 characters). We recommend checking the checkboxes "Prohibit changing the password by the user" and "Password expires indefinitely". Click the "Create" button.
    Set user authorization parameters (name, password), enable or disable available options
  19. Right-click on the created user and select the "Properties" action, then go to the "Group Membership" tab. Click Add.
    In the properties of the user you created, on the "Group Membership" tab, click the "Add" button
  20. Enter the name of the group you created in the text box and click Check Names.

    Don't forget to click the "Check Names" button after entering the group name in the text field
  21. Go to Control Panel>Administrative Tools>IIS Manager. In the "Connections" section, place the cursor on your FTP site and click the "FTP Authorization Rules" icon.
    Place the cursor on your FTP site in the "Connections" menu, then click the "FTP Authorization Rules" icon
  22. Click Add Allow Rule.
    Click the Add Allow Rule action for your FTP site
  23. Select the "Specified user roles or groups" option, type your group name in the text field. Check the checkboxes "Read" and "Write". Click OK.
    Specify the name of your group and check the checkboxes "Read" and "Write"
  24. If you want to allow access to all users, then click "Add Allow Rule" again and select "All Anonymous Users". Check the checkbox "Reading" only.
    If required, add the right to download files from your FTP server to all users
  25. Now click the FTP Authentication icon.
    Click the "FTP Authentication" icon
  26. Right-click on the "Anonymous access" mode and select the "Enable" action. Now everyone can connect to the FTP server.
    Turn on anonymous access so that all users can access your FTP server
  27. Click the FTP Logging icon.
    Click the FTP Logging icon
  28. In the window that opens, configure logging.
    Set up logging for your FTP server

To work with the created server, you can use one of the many FTP clients or just Windows Explorer. Don't forget to set up port forwarding in your router and create routes if you need to provide access to the server via the Internet.

Connecting an FTP resource folder with a network drive in Windows OS

Many users find it more convenient to work with a regular system drive that appears in File Explorer. Third Party Programs not everyone is welcome to work with disks. To get such a disk, you need to mount the FTP folder and associate it with logical drive. You can do this in two ways:

  • through the "Explorer";
  • through a special console utility ftpuse.

Mounting an FTP resource using Windows Explorer

Mounting an FTP resource using the ftpuse console utility

Unfortunately, the FTP share mounted as network drive using the "Explorer", will be visible only in the "Explorer". If you need access to such a disk via file manager or from the command line, you have to use special utility ftpuse.

Distributed by ftpuse for free. Once downloaded and installed, the utility is available from any open shell window. In order for the network drive to remain connected even after closing such a window, the utility must be used in conjunction with PowerShell. Once the utility is installed, it is available from the command line or the PowerShell processor.
Using the ftpuse utility, you can configure console access to an FTP server as if it were a network drive.

The PowerShell processor has been part of the OS since Windows 7 SP1. If you do not have a service pack installed, setup file command processor will have to be downloaded from the Microsoft website.

Table: ftpuse utility commands that allow you to configure access to an FTP resource

devicenameSpecifies the name of the logical drive under which network resource will be mounted in the OS.
ftphostnameSpecifies the name or address of the server to connect to.
remotepathThe network folder that will be used as the root directory of the mounted logical drive.
passwordSets the access password.
/userThe name of the user who connects to the server.
/nopassiveSets active mode work.
/owneraccessonlyThe network drive is visible only to the program from which the ftpuse utility is launched.
/portYou can set an arbitrary TCP port address used for communication with the server. The default is port 21.
/hideRuns the utility in the background, no messages are displayed on the screen.
/debugThe utility is running in debug mode.
/deleteDeletes the current session, disconnects from the server and unmounts the disk.

Examples of the ftpuse utility

Here are some examples of using ftpuse commands to set up a server as a local drive:

  • ftpuse F: ftp.abrris.com - this is how we create a logical drive F: in the system, associated with the ftp-server ftp.abrris.com;
  • ftpuse F: ftp.abrris.com /USER:junkers 1944 - authorized user junkers with password 1944 connect to ftp.abrris.com server;
  • ftpuse F: /delete - disconnect drive F: and disconnect from the server.

An FTP resource connected using the ftpuse utility will always be displayed in Explorer with a disk size of one gigabyte. This is not a bug, but a feature of the utility. However, a disk connected using Explorer will not display its volume at all.

How to set up an FTP server

In the open spaces of the network, you can download a large number of ready-made distributions, which, after unpacking and simple configuration, will deploy a ready-made FTP server on your computer. There are both commercial and free products that are not inferior to the first in terms of capabilities. Below we will look at two free solutions, which have long become the industry standard among computer enthusiasts and small firms.
With the launch of a server for the needs of a small office or apartment building even a non-professional can handle

FileZilla Server - flexible, productive and secure

FileZilla Server - developed by the team that created the famous firefox browser. He is different huge amount settings, availability of versions for 32 and 64-bit operating systems, the possibility of remote administration. And for all this range of possibilities you don't have to pay a penny. Installing and configuring the server are divided into several simple steps. The program exists on many platforms, and if you have learned how to set up such a server in Windows environment, then with minimal differences you can do the same in Linux or MAC OS.

Installing FireZilla Server

  1. After download installation file Run it for execution, and then follow the prompts of the installation wizard.
  2. Read and accept the license agreement.
    Accept the license agreement to continue the installation process
  3. Select the required type of installation (we recommend the standart type):
  4. Decide on the folder where the program will be installed, and proceed to the choice of the FireZilla Server autorun method (we recommend the first option):
  5. Now specify the port for the server interface. Leaving the default value of 14147 is undesirable for security reasons.
  6. The final stage of the installation will be the choice of the type of launch of the interface of your server (we recommend the first option):
  7. Start the installation process by clicking the Install button.

Server Tuning

Having successfully installed software package server, restart your computer and run the FireZilla Server program.

  1. In the dialog box that appears, specify the server address and port. You don't need to enter a password the first time you connect. This connection will be possible only from the computer on which the software components server. It will not be possible to reach the server from another machine, since the address 127.0.0.1:14147 is used only for local connections. Enter the server address and port to connect
  2. The Settings section of the Edit menu contains numerous settings that allow you to configure software package properly.
    Go to FileZilla Server Settings
  3. On the General Settings tab, you can change the primary settings:
  4. For the convenience of users, you can set up a text greeting in the Welcome message section, which the client program will show to the user upon successful connection to the server. Metacharacters can be used to customize the output service information to the client window.
    In the Welcome message section, you can set up a welcome message and display service information for users
  5. In the IP bindings section, specify the range of IP addresses from which users can access the server. This section of settings allows you to organize access to the resource only from the local network or even from one of its segments.
    Limit the range of addresses from which your server can be accessed
  6. Set up address filtering in the IP Filter section: the upper text field is set to the "white" list, and the lower one is set to the "black" list.
    Fill in the "white" and "black" lists of IP addresses
  7. Set up logging in the Logging section. Log files can be created anew every day or all statistics will be written in one.
    Set up FileZilla Server logging in the Logging section
  8. In the Speed ​​Limits section, you can limit the bandwidth available to the server. You can set up global restrictions, or you can set them according to the calendar and even individual hours. The unit of measure is kilobyte.
    If necessary, you can set bandwidth limits in the Speed ​​Limits section
  9. In the Filetransfer compression section, you can configure file compression on upload. But we recommend leaving the default settings.
    It is better not to make changes to the Filetransfer compression settings section
  10. It's time to set up the user accounts that will be allowed access to your server resources. Go to the Users section of the Edit menu to open the user management interface.
    You can add a new user in the Users section of the Edit menu
  11. Click the Add button to add a new user, give him a login and specify the group membership. For a new user, set a login and indicate which group he belongs to
  12. For cos this user set a password and a limit on the number of connections to your server.
    Customize user password and allowable amount server connections
  13. On the Share Folders tab, you can configure user access to certain resources on your server. To do this, select the Shared folders tab and click the Add button.
    Do not confuse the Add buttons: to add folders, you must click the Add button that is highlighted in the picture
  14. Select a folder on the disk, and use the options in the left part of the window to set the necessary access rights:
    • read only - read;
    • write - write;
    • delete - delete;
    • changing files in a folder - append.

This completes the initial setup. The server is ready for operation, and the security settings meet the criteria home use or the operation of a small office network.

Video: Installing and configuring FileZilla Server step by step

TFTP server for small needs

Among the varieties of FTP and programs for working with them, TFTP stands apart - this is a simplified version of FTP to the limit. The lack of mechanisms to protect traffic and even user authentication does not allow using TFTP to exchange files over the Internet.

But it is the best suited for uploading firmware and firmware to routers, digital TV set-top boxes, tablets and smartphones. The loader of such devices contains a TFTP client that allows you to download and install on the device software, even if it is in emergency mode due to corrupted firmware.
The main application of the TFTP protocol is firmware wireless routers through the recovery console

Install a TFTP server on your computer:

  1. Download the distribution package of the program:
    • tftpd32 if you have a 32-bit OS;
    • tftpd64 if you have a 64-bit OS.
  2. Install the program in one of two options: a standard application or a system service.
  3. If you chose to install the service, then restart your computer when the installation process is complete.

The server does not require special settings, but after starting it, make sure that all settings on the TFTP tab look like in the picture. This is how the default settings of the tftpd32 utility look like

The following commands are used to download files from the server or upload to the server via the command line:

  • tftp 192.168.1.10 GET filename.txt - to get a file from the server;
  • tftp 192.168.1.10 PUT filename.txt - to send a file to the server.

To work with the TFTP client in Windows 7, it must be installed through the "System Components" dialog. In older versions of the OS, the client is available without additional steps.


Adding a TFTP Client Using the System Components Dialog Box

Video: working with the TFTP server - emergency recovery of the router firmware

Client programs for connecting to FTP servers

Client programs perform functions such as:

  • connection to FTP servers;
  • resume files when the connection is broken;
  • connection logging;
  • storage of many settings to different servers;
  • group operations with files;
  • server search.

Also, the client programs have a built-in editor that allows you to use the program as a full-fledged website builder.

Total Commander

Perhaps the most popular file manager for Windows. It contains a built-in FTP client that allows you to work with remote server as with a normal logical drive. The program is shareware, and before purchasing a license, it will constantly remind the user that it would be nice to finally buy it. The functionality is not affected.
Total Commander has a built-in FTP client

FAR

Like Total Commander, this program is a multifunctional two-pane file manager. It is much more ascetic in interface design (works in text mode), but it is cross-platform - available for half a dozen different operating systems. The FTP client is built into the distribution, and you can start working with sites without installing add-ons. A definite plus is a free program. Activation FTP client is carried out using the plugin manager, but this is a very simple and intuitive procedure that will not cause difficulties even for a novice user.
FAR will be able to work with FTP servers on any operating systems

One more free client software from the creators Mozilla browsers and Firefox. Simple and accessible to the user thanks to a concise interface and excellent Russification. There are versions of FireZilla for Windows, Linux, Mac OS, and even Andriod.
FileZilla - FTP client from the creators of the world famous browser firefox

Among the features that distinguish it from competing programs, it should be noted:

  • support for a large number of protocols;
  • resume downloading files when the connection is broken and support for working with large files;
  • cross-platform;
  • possibility of bookmarking;
  • file drag and drop support (drag & drop technology);
  • flexible transmission speed settings and the ability to reserve part of the Internet channel;
  • editing files directly on the server;
  • remote file search.

Free interface FTP programs Rush has a lot to do with products Microsoft Office and configured in a similar way. Of the highlights, it is worth noting:

  • the ability to transfer files from server to server without downloading to a computer;
  • high-quality implementation of a two-panel interface;
  • built-in download manager with configurable download list.

FTPPrush should appeal to MS Office users

Better to work with English version interface, because the quality of Russian localization leaves much to be desired.

CoffeCup Free FTP is a client for the most undemanding and inexperienced users, it allows you to download and upload files with just one click. The scarcity of settings is more than compensated by an intuitive interface, high-quality localization and free program. Nevertheless, the program supports a full-fledged two-pane mode and the ability to transfer files from server to server without preloading, and also has a simple HTML editor on board.
With the CoffeeCup Free FTP client you don't have to worry about settings

Creating an FTP Server - An Easy Way to Get on Your Desktop file storage with multiple access. A large number of programs and the relative ease of setup make this method very popular. Allocate one computer purely for the server and do not store any other data on it except what should be on the server. And even in this case, two to three dozen users accessing your resource at the same time can almost completely "squander" the Internet channel. And the provider will unobtrusively offer to change the tariff plan to a corporate one. If you need file storage with simultaneous access of a large number of users, then host an FTP server on a commercial hosting. Or use ready-made file sharing portals, such as Google Drive or DropBox.

In this post, I will tell you how to install and configure a secure FTP server (protocol FTPS) on Windows Server 2003 (installation and configuration for other operating systems is no different).

Do not confuse the protocol FTPS with protocol SSH File Transfer Protocol (SFTP), protocol FTPS protocol incompatible Secure Shell (SSH).

Please make sure your server is not running IIS FTP service. If the service is running, then disable it, because it uses standard ports FTP protocol.

Download the latest version of FileZilla Server. At the moment, the latest version is 0.9.39.

After you have downloaded the file, run the installation of the program.

In the menu that appears, select the installation type "Standard" and click "Next>".
Service will be installed FileZilla servers and admin GUI.




After installing the server, let's start configuring it. Launch the admin console and connect to 127.0.0.1, which is localhost, on port 10050 (you specified it during server installation).


Make server settings in accordance with the pictures. They speak for themselves.
As a result, we will get a secure FTP server installed on port 21, which is used by default by FTP servers.


Set your own welcome message to be displayed when a new user connects. Turn on the option "Hide welcome message in log". This option disables writing a hello message to the server logs, which will reduce their size.

Note. When writing your greeting message, you can use Special symbols and variables: %v- variable contains FTP version servers, and the design %% - will be replaced by %



Use the "*" character to have the FTP server listen on all IP addresses on the system. If you have several IP addresses, then specify only those that you need to listen on.


To make your FTP server more secure, block all incoming addresses by adding only those addresses from which connections are expected to be excluded. IP addresses must be separated by a space. V this example I allowed connection with local address and from google.com (209.85.229.103).


Adjust the following settings according to the pictures:








Turn on connection logging. Also you can enable automatic deletion connection log after a certain period and set a limit on its size.




Here you can set download and upload speed limits. These settings are global and can be reconfigured for each user separately.




This main part instructions in which we will set up SSL certificate to use FTPS. You can use a public certificate, which must be purchased separately. But in this tutorial, we will use the built-in certificate generator.


Fill in all the fields with your data by analogy with the picture.
In the "Common name" field, enter your IP address or Domain name if you have one. And then click on the button "Generate Certificate"

Return to the SSL/TLS settings and specify the path to the certificate file and key file.


Finally, set the parameters for auto-blocking suspicious users.

IMPORTANT! Before testing connectivity, make sure you have firewall exceptions set for ports 21, 990, and 3000-4000.

There are often times when we need to exchange files with someone on the network. For files small size you can use mail or send a file, for example, via an Internet pager. This is acceptable when its size does not exceed a few megabytes. And if it's a movie or a game, or an archive with photos of several gigabytes?! You can, of course, use a public file hosting service, split the file into parts and provide it for download, but not everything is going smoothly here either, most users are used to downloading for free, and this, as a rule, is a speed limit and waiting for a timer. This is where our own FTP (File Transfer Protocol) server comes to the rescue.
What, in fact, are the advantages of your own FTP server:

  • server management;
  • managing users and server resources;
  • there are no speed limits if you don't want it yourself;
  • no need to pay for hosting the server to the host;
  • there is no need for a static (permanent) IP address for the server.

Everything in order

In this article, I suggest that readers of MirSovetov consider how, having a dynamic address and connecting via ADSL technologies, make sure that any user of the network, no matter where in the world he is, can access your FTP server, of course, with your permission. In order for your FTP server to be accessible, you need a service that will match the domain name to your IP address. Domain names are resolved by a DNS server.
What is a DNS server?! This is a domain name system (DNS - domain name system), which allows you to match a domain name to an IP address. Thanks to DNS, we dial in address bar browser is not IP-addresses, but understandable and familiar to us site names. But a regular DNS server only works with static IP addresses, and bind our dynamic IP address to the domain name we can't. So what do we need to have a domain name for our FTP server?! We will need to register with a system that can provide us with a service that will track the change in our IP address and match it to our domain name, and, preferably, completely free of charge.
Today, the most popular services are DynDns (http://www.dyndns.com/) and No-IP (http://www.no-ip.com/). Since there are no special differences in them, we will consider one of them in a little more detail.

registration

We will register at DynDNS.com. Go to the page and click on the "Sing up Free" button, then on the "Sing Up" button.
In the "Hostname" field, write the name that you like, the main thing is that it should not be occupied by anyone. Next, select the domain you like from the list. The list of domains is quite large, so there is plenty to choose from.
In the "IP Address" field, you can enter your current IP address. Everything, nothing else needs to be changed and marked. You should end up with something like this:

Next, click on the button at the bottom of the "Add To Cart" page, and if everything is in order and the domain name is not occupied by anyone, then the registration process will continue, otherwise the system will prompt you to change the name or domain. In our case, everything went well, and Dynamic was created DNS hosts named mirsovetov.homeftp.net. Now we need to create our account. It’s worth mentioning right away that email addresses of the mail.ru server are not allowed.

Well, that's, in fact, that's all, it remains to go to the mail and confirm the registration. We follow the link indicated in the letter and activate the service by clicking on the “Activate Services” button. I do not recommend MirSovetov readers to get involved in creating a large number of names, since the service will provide no more than five names for free, and even if you delete the ones you don’t need, the counter will still not be reset. So pay enough attention to the name.
Now we need small program, which will track your IP address change and submit it for matching with a domain name. It is located on the "Support" page (https://www.dyndns.com/support/). Download DynDNS® Updater, install, log in. There are no difficulties whatsoever. The program will start automatically at system startup.
So, we figured out our dynamic address, now the DynDNS service will provide us with a permanent domain name for our FTP server. It's time to move on to installing and configuring our FTP server on your home computer. We will use the Rablo's program FTP server due to its availability, free, simplicity and intuitive interface (you can download it from the link: http://gooddi.webhop.net/files/pablos_ftp_server_v1_52.rar).

Installing and configuring an FTP server

To get started, download the Rablo's FTP server program and unzip it to any place convenient for you. The program works without installation and requires minimal settings. Let's create a folder "FTP_SERVER" to which we will provide access.
Run the program and go to the "Configuration" tab:

In the IP address field, enter the IP address of the computer running the FTP server. If you have one computer at home and your ADSL modem has the address 192.168.1.1, and nothing has changed in the modem settings, then the computer address will be 192.168.1.2. This can be found by clicking on the icon. network connection right-click and select "Status" from the menu, then go to the "Support" tab, or by executing the "ipconfig" command in command line(press "Win + R", enter "cmd" without quotes, and in the window that opens, type "ipconfig" also without quotes). I think all other parameters do not need explanation ("Autostart", "Start minimized to tray", "Automatically activate the server at startup").
Now let's start creating users, assigning root directories and rights to them. Click the "Add" button and create the user "guest" ("Guest"). After clicking "OK", the program will ask you to specify for the user root directory, above which he will not be able to rise, in whatever place she would not be. You can set a password and assign rights to the user. The number of users is limited by your imagination, but you should not get carried away, otherwise you yourself will get confused. As you can see in the image below, we have created a user "guest", given him a password and root directory "FTP_SERVER", given him the rights to upload, download and create directories. If you wish, you can include a virtual directory, which can be located anywhere, but will be visible in the user's root directory. This feature is available in the "Directories" tab.

Press the "Start" button - and your server will start working. It remains to check his work. Click "Start - Run" (or the key combination "Win + R") and write the following address: ftp://192.168.1.2.
If everything is in order, you will see the user authentication window, in which we enter the name "guest" and the password that was set for this user. As a result of the work, you will see the explorer window - this means that your FTP server is working. But for now, your server is only available locally.
In order for your server to be accessible from, you need to do one more thing, namely, configure your ADSL modem so that it sends requests to your FTP server. This is called port forwarding.

Modem setup

To do this, you need to enter the modem interface. Most likely, its address is 192.168.1.1. Check this in the documentation for your modem. You need to enter it in the address bar of your browser. Further settings will be on the example D-Link ADSL modem, in other models of modems, the settings are not much different.
So, you have entered the modem interface, go to the "Advanced Setup - NAT - Virtual Server" section and click the "Add" button. In the window that opens, select “FTP Server” from the list, then in the “Server IP Address” line write the address of the computer on which you have FTP-Server running (in our case, 192.168.1.2), click “Add / Apply” and restart modem. After downloading the modem, you can send emails to your friends and let them know that you are happy to give them access to your own FTP server to exchange files. Don't forget to tell them the address you registered with DynDNS.com. For greater convenience, so that you do not have to explain to your friends how, where and what they need to enter, you can create a connection shortcut yourself and send it by mail.

Create a connection shortcut

To do this, you need to open the control panel and click on the "Network Places" icon, then in the network tasks select "Add new element to the network environment. The Add to Network Neighborhood Wizard will start. Click "Next" and in the line " Network address or Internet address" we enter the address that you registered in the DynDNS.com system. In the next window, uncheck " Anonymous Login” and enter the username “guest”. Next, give a name to the shortcut, for example, "MyFTP_Server", and complete the wizard. Checkbox "Open this place in network environment upon completion of the wizard" can be removed, because when you open this address, you will be taken to the modem settings interface, for you your server is available locally at the address of the computer on which the FTP server is running. Now you can send this label by mail with the words "Check out my friends how cool I am, I have my own FTP server."
It is worth paying the attention of MirSovetov readers that the FTP server works great with a download manager Download Master and supports multi-threading, resuming files, and also works great with any FTP client.
So we finished creating and running our own FTP server on our home computer, it's not that difficult, isn't it, and at no cost. But how can you facilitate the exchange of files between users and at a good speed, without any restrictions.
I wish you all success in your endeavors.

In this article we will talk about such things:

  1. how to set up an FTP server on a computer that is connected to a router;
  2. how to give access to it from world wide web Internet.

Setting up the FTP server program

Installing FileZilla Server

Download and install any FTP server you like or are used to. For example, we will download free program Filezilla Server from the official site: https://filezilla-project.org/download.php?type=server

Run the downloaded setup file:

Click reject:

Click reject again:

Click Install:

Click I agree:

Next:

Install:

FileZilla FTP Server Setup

Launch the program interface.

Enter settings: menu Edit -> Settings:

Now you need to configure passive FTP mode.

1) Select a section Passive mode settings;

2) Check the box use custom port range;

3) Set the range of ports convenient for you to use in passive mode;

4) In the field Use the following IP write down your external IP;

5) Press the button OK to save the settings.

Now you need to set up user accounts and specify home directories.

Enter the menu Edit and choose Users:

In chapter General click Add:

Enter your username and click OK:

1) Check the box next to Password. This will indicate that for this account a password will be required.

2) Set a password for this account;

3) Go to section shared folders:

In chapter Shared folders click Add:

and select the folder that will be opened to this user for access via the FTP protocol. After selection shared folder click OK:

Set permissions for this user on the folder.

In the area of Files You can enable or disable the following file operations:

  • Reading;
  • Record;
  • Removal;
  • The change.

In the area of Folders You can enable or disable the following folder operations:

  • Creation;
  • Removal;
  • List view;
  • View subfolders.

After you set the permissions for this user in current folder, click OK to save settings:

Computer settings

After configuring the FTP server program itself, you need to allow incoming connections in the firewall.

We go to Control Panel and choose Windows Firewall.

Right click on Rules for incoming connections and choose Create Rule:

Choose an option For the program and press Further:

Set the switch to Program Path and with the button Overview specify the path to the file FileZillaServer.exe.
Then, click Further:

Choose an option Allow connection and press Further:

Give an arbitrary name to the rule and click Ready:

Router Configuration: Creating Port Forwarding Rules

Now we need to create port forwarding on the gateway. The gateway can be a router, modem, or other device. Log in to the web interface of the router (read the article about what the web interface is and how to access it:) and open the port forwarding section. Read more about port forwarding in our article: What is port forwarding.

Create two rules.

Rule number 1: forwarding external port 21 to port 21 of the computer where the FTP server program is installed.

Rule #2: forward a range of ports to the same range of ports on the computer with installed program FTP server.

Save the setting.

How to remotely connect to an FTP server

To access the FTP server, you can use either an FTP client, or a browser, or even File Explorer. Of course, it is preferable to use an FTP client. We recommend a free program FileZilla client. You can download it on the official website: https://filezilla-project.org/download.php?type=client

In field Host enter either ) or the external IP address of the router. Then, enter the username you created in FileZilla Server on the computer, its corresponding password, and then click Quick connection:

If you did not change port number 21 to non-standard in port forwarding in the router settings, then the field Port can be left blank - the program will connect to the 21st port by default.

Top Related Articles