If you connect to the Internet through a hardware router/firewall you will almost certainly have to configure your router in order to get HFS to work properly. The critical task is called "Port fowarding".
edit SummaryThis section explains what you have to do to establish a working, fully-secured and protected, HFS server. These tasks include:
edit Initial stateWhen you have configured your router, double-click the file named hfs.exe to start your server. Initially, it looks like this:
Of course the "Address" in the above illustration is not the address you actually see on your server. edit Self TestNow make sure that your server is visible on the Internet, by using "Self Test". Click the option and follow the onscreen instructions. A successful test, popsup the following: "Self Test" is an amazingly powerful HFS feature. It not only checks Internet visibilty, it also attempts to automatically repair many common connection problems. In general terms, if "Self Test" is successful you can be almost certain that the server is visible on the Internet, and is ready to accept and process upload and download requests. Equally, however, if it fails there is little point in continuing configuration until you have solved this connection problem. (Most often failure to forward port correctly.) You'll see that the first Address displayed is now replaced by your normal IP address. Click "IP address" to see the various address-handling options available. But do not change it right now. edit Adding an upload folderNext, add an upload folder so that your friends can easily send you files. This must be a real folder (see HFS: Glossary). To do this:
edit Adding a download folderNext, add a download directory so that your friends can easily download files from you. This can be a virtual folder (see HFS: Glossary), but for first-time use, it's probably easier to use another real folder. To do this:
The HFS Virtual File System now looks like this: http://localhost/ now displays this: edit Addresses to give outYour friends can now download any files you add to the folder C:\Downloads on your hard disk. You can either give them the address of your site, or of the item (the folder "Downloads"). If you use folder names that contain spaces, the item address may include % signs and some unwanted digits. In order to make it more readable, you can use the HFS "URL Encoding" facility (Main menu in "Expert mode"). Uncheck "Encode spaces" to remove the % signs which conventionally represent spaces, and the superfluous digits. The item then becomes a little more clear and readable: Warning A neat solution that avoids any problems with this, is to only create folders with names (character strings) that do not contain spaces! edit Password protectionYou can protect folders, files, other items, or your complete site, by assigning passwords. This is not the same as setting-up user accounts. (See below.) After you've clicked "Ok", only those who use the correct username and know the password can access this folder. You'll notice that a locked icon appears next to the folder in HFS.
To remove the protection, click "Reset user/pass". edit Passwords and folder restrictionsSome users get confused about the use of folder restrictions, and the "username/password" facilities, in HFS. The best practice is to just protect your HFS folders. This a key difference between HFS and conventional file servers. Many have used conventional servers and discovered that you have to have an account and login before you can do anything. On this site for example, "rojetto" (whoever he is) has no account. But he can access the folders "Uploads and "4rojetto". He can't access "Downloads" (because he doesn't know the password). You can see that "Downloads" has a padlock icon, to show that it's locked. You can also password-protect root. Now "rojetto" (who still doesn't know the password) can see the folders, but can't access any of them. For extra security however, you can set-up user accounts. edit User accountsUse the facilities in "Restrict access" to setup user accounts. Assuming you haven't setup any accounts before, select the "Downloads" folder, and click "New account" to display: Fill-in the "Username" and "Password" and click Ok. edit Saving your configurationIf you have followed the process outlined above, you now have a simple, very easy-to-use HFS server that is fully-secured and protected. Warning Do not attempt to change the default file extension;always use "vfs". See Refinements for for more step-by-step guidance about some of the other features included in HFS
Last modified August 12, 2007 10:24 am / Content is available under GNU Free Documentation License 1.2. / Skin by Kevin Hughes
![]() |