Installing an HTTP file sharing serverOften a situation begins at which time it is necessary to urgently transfer a file to someone. What are the routes to solving a similar problem?
Transferring files by e-mail is also a tedious task. First, it’s time to send boldly multiply by a couple: the data will first be transferred from you to the server, but then just in reverse - from the server to the recipient. Secondly, due to some features of the mail protocol, the size of the physically transmitted data will be 35% larger than the size of the original file. The ICQ network for exchanging files requires a direct connection, even setting up the Port Forwarding function on NAT for various reasons does not always allow us to solve this problem. ICQ, still, does not support resuming files.
You can install an FTP server, but for rare file transfers, it is unnecessarily difficult. Plus, if the customer is behind NAT, his software should be able to work in passive FTP mode.
There are still many programs for data exchange, but they require use on both sides, therefore, in order to transfer files in such a situation, we will consider the use of an HTTP server.
There are quite a few different versions of HTTP servers, but the HTTP File Server is ideal for solving our problem .
Downloading the second version of the application is also running (no installation required).
The program interface is very simple-minded and visual. You simply drag and drop files into it, select the necessary one and also inform the recipient of the link indicated in the address bar. The recipient by any standard means (for example, Internet Explorer) can also download it.
But first it is necessary to configure the Http File Server. Press the Easy / Expert Mode switch at the top of its window to switch to Expert mode. Now choose the port on which our server will work. The standard port for HTTP is 80, you can leave it. But for some providers, the 80th port is closed to the input, at that time you need to specify any other free, say, 16384. If you have a NAT router, then you should specify the forward port of the selected port to your computer. Please take care that in ON mode it is impossible to change the port, you must first press this button to switch to OFF mode.
Then the files that we want to transfer to someone are dragged to the Virtual File System window. You can drag and drop not only individual files, but also directories. For directories to eat a pair of finishing options - Real and Virtual.
We explain: for the Real mode, all the files that will be eaten will also appear in the future will always be practically available, but Virtual allows you to edit the list of available objects.
Note that if in the context menu on the directory (including also on the root directory "/") tick Let Let browse, then HTTP File Server will automatically generate a page with a list of files for an adventure if there is no index.htm in the directory.
Now it is allowed to give the user a link from the Address line (in the HTTP File Server) to the server itself or to a specific file.
If you give links to different files to different users, eat the likelihood that someone, typing just the server address, will download all the uploaded files. To avoid this, it is allowed to use access rights. To do this, go to the menu "Menu -> Other options -> Users" and also prescribe the username / password there.
Then, in the Virtual File System, on files that should not exist in any way accessible to anyone, click the left mouse button to display the context menu and there in the Restrict access field we mark the users who are allowed to access the file.
If you want users to upload a file to you, then for this you need to drag the folder to the Virtual File System window to also indicate that it will become in Real mode. In it, users will be able to upload files, if allowed option Let browse. You can only allow selected users to upload files, but not all. To do this, follow the context menu and note those who allow in "Upload -> Upload for users".
If you have a domain name, you are allowed to register it in "Menu -> IP Address -> Custom", and it will also be inserted in the Address line instead of IP. If you have access to the Internet through NAT, then in HTTP File Server you can search for an external IP (in "Menu -> IP Address -> Find external address").
You can see in your browser what it is that you have set up. To do this, at the end of the Address line, click the Browse button or simply copy the line from the Address field to the browser. If you have NAT, you are also configured to use external addresses (External address), then temporarily select any of the local addresses in "Menu -> IP Address" or simply manually enter http://127.0.0.1:port_port in the browser.