Skip to main content

Using http file server (HFS)

I have just discovered a great little app which allows you to quickly share files from your PC like a web server.

Why would you want that?
  • No need to worry about share permissions in Windows to get it working
  • No need to worry about sharing to Linux, Macs where you might need to enable more services
  • No need to "install" software to start sharing your files out
  • Just need a web browser to browse and download the files you have shared out
  • its open source and its free
 I am going to run through the basic steps of setting it up to start sharing your files on my Windows 10 Desktop

  1. Go to http://www.rejetto.com/hfs/?f=dl to download the windows version of the exe file

  1. Once you have downloaded the file which is around 2.4.mb then copy the file to a location where you will want to run this from. For me its at "D:\hfs\"
  2. Run "hfs.exe"
  3. You may receive a "Open File - Security Warning". If you are Ok with this then click "run
  1. As this is the first time running of HFS.exe it will ask you if it can create two new inbound rules for this exe and which profiles they will be applied to. I have just allowed "private networks" and clicked "Allow Access". There maybe situations where you need to allow it for public networks as well. You can make this change via the within Windows Advance Firewall settings.


  1. You show now see that the program has loaded so check what IP it is using to act as the web server by looking at the address bar. You only need to check if you PC has more than one IP address

  1. If the address is not right then select Menu>IP Address and see if can see the IP address you would like the web server to run on and select it
Sharing your files and folders
You can share specific files or just share folders so that people can just browse to find the files that they need. 

To share files you click on Menu >Add Files and browse to the files that you would like to share. If the files are in the same directory then you can use the control key to do multiple selection.


To share folder you click on Menu >Add Folder from disk and browse to the folder that you would like to share. There are two options when sharing the folder which is "Real Folder" or "Virtual Folder". Real folder is where it reads directly from the disk and with virtual folder it loads all the files to memory. So if you have a lot of files and its big then select "real folder". Further explanation available here

Now when you open a browser to the IP address you will see the files and folders that you have shared out

If you click on a file it will download and if you click on a folder it will drill further in to the structure.

I have only scratched the surface of this nice little app as there are more features such as;
  • requiring login to access files/folders
  • view bandwidth utilisation
  • view source IPs
  • apply basic access control list
  •  apply speed and simultaneous limits
  • plus many more
One note : The windows firewall rule will stay enabled when you shutdown the application so you will need to go in to Windows Firewall to either disable or delete the rule after usage.


Credit to Massimo Melina (aka rejetto) for creating this simple and lightweight application and I hope you will find it useful in moments where you just had to quickly share and transfer some files to some one.

Here is the links to the author website and wikipedia:

Comments

Popular posts from this blog

Rolling back a version of ESXi

There is an option in VMware where after you have performed an major upgrade of ESXi you can roll back to your previous version. The benefit of this is that you would not need to reinstall your ESXi and its configuration if you had issues with the new software. I had to do this on one occassion in my lab where I upgraded from 6.5 to 6.7 and my VMs would not run because the CPU was not supported in 6.7. Please remember if you are using ISO method to upgrade ESXi please ensure you select "Upgrade ESXi, preserve VMFS datastore". Selecting "Install ESXi, preserve VMFS datastore" does not mean preserving datastore means retaining ESXi as it will still do a clean install of ESXi. This method does not work for vSphere 7.0 as there are changes to the partitions on the boot device. Below are the steps to roll back to a previous version which is quite straight forward. As always perform an backup of your host configuration before you upgrade or rollback ( KB2042141 ). I have

Configuring ESXi 6 host to send logs to Syslog Server

In my previous post I talked about configuring VMware Syslog server for Windows which is installed and enabled by default on installation of vCenter 6 for Windows. I will now describe the basic configuration that is required on an ESXi 6 host to be able to send logs out to a syslog server using my vCenter as the example. 1) Navigate to your ESXi host within vCenter. Go to "Manage" tab and select "Settings" followed by "Advanced System Settings". Look for the settings "Syslog.global.loghost" and highlight this settings. Click the pencil icon to edit the configuration for this setting. 2) You can now add the host name or ip address of your syslog server/s. You can enter just hostname or IP address, use udp://hostname:514 or ssl://hostname:1514 to be more specific on the port and protocol to be used. If you have multiple hosts then you use the comma (,) to separate each server i.e. udp://192.168.0.1:514,udp://192.168.0.2:514 3)We n

Custom ESXi Image - ISO using PowerCLI

There comes a time when you have purchased a new hardware to run your ESXi software and discover that the installable base media provided by VMware does not include the drivers or the drivers are out of date. In the world of Windows (Plug and Play) it would discover the hardware and prompt you to provide the drivers so that Windows would install/update the drivers for the hardware. For ESXi if the drivers are not present during load time then the hardware will possibly not work. VMware uses VIB (vSphere Installation Bundle) as a way for vendors to distribute their drivers. To install these VIBs you can either use Update Manager or command line (esxcli). Now this is all good but it does mean you have to first install the base ESXi then use one of the steps above to install/update the drivers.   Some people might feel that it is OK to update the drivers using the above methods but what if it was the network card that was the new hardware and you needed new drivers. Without the net