Search
K
Links

How to set up HTTP File Server for remote file access

Discover how to use HTTP File Server on Windows, macOS, and Linux devices to remotely share and download files over Meshnet.

Introduction

HTTP File Server (HFS) is an open-source web server designed for convenient file sharing. It can be used as a more user-friendly alternative to shared folder configurations. However, without port forwarding, the HFS instance is limited only to the local area network (LAN).
With the help of Meshnet, you can form your own virtual network with devices from different networks all around the globe. This setup allows you to remotely access the HFS instance and share files with others without compromising your home network’s security.
This guide showcases how you can set up HTTP File Server on Windows, macOS, and Linux devices and access the shared files from remote devices over Meshnet.

Set up HTTP File Server

First, you need to configure the HTTP File Server software on your device.

Starting HFS

Begin by downloading the latest version of HFS and starting it.
Windows
macOS
Linux
  1. 1.
    Visit the Releases page of the HFS GitHub repository.
  2. 2.
    Download the archive for Windows and extract its contents to a dedicated folder.
  3. 3.
    Launch the hfs executable file.
The executable will open a command line window displaying information about your HFS instance and network interfaces.
Windows PowerShell window displaying information about the HFS configuration.
Once the server is started, the HFS admin panel should open in your default internet browser.
HFS web admin panel.
  1. 1.
    Visit the Releases page of the HFS GitHub repository.
  2. 2.
    Download the archive for macOS and extract its contents to a dedicated folder.
  3. 3.
    Open the HFS folder and launch the hfs executable file.
The executable will open a terminal window displaying information about your HFS instance and network interfaces.
Terminal window displaying information about the HFS configuration.
Once the server is started, the HFS admin panel should open in your default internet browser.
HFS web admin panel.
Note
When trying to launch HFS, you may receive an error message indicating that the developer cannot be verified. To proceed with the installation, open System settings > Privacy & security, scroll down and click Open anyway.
Clicking 'Open anyway' in macOS system settings.
  1. 1.
    Visit the Releases page of the HFS GitHub repository.
  2. 2.
    Download the archive for Linux and extract its contents to a dedicated folder.
  3. 3.
    Open the HFS folder, right-click anywhere inside, and select Open in terminal.
    Selecting 'Open in Terminal' from the Ubuntu context menu.
  4. 4.
    In the terminal, run the following command to start HFS:
    sudo ./hfs
    The terminal window will display information about your HFS instance and network interfaces.
    Terminal window displaying information about the HFS configuration.
  5. 5.
    Open your internet browser and navigate to the following URL to access the HFS admin panel: localhost/~/admin/
    HFS web admin panel.

Creating a new administrator account

When the server is active, it is recommended to create a dedicated administrator account. This way, you’ll be able to manage your server’s settings from other devices. The default configuration allows administrator access only from the same device.
  1. 1.
    On the HFS admin panel, click the Accounts option on the left.
  2. 2.
    Select Add > User.
  3. 3.
    Fill in your preferred username and password and enable the Permission to access admin-panel toggle.
    Entering the administrator account credentials with the 'Permission to access admin-panel' toggle enabled.
  4. 4.
    Click Save.
Your newly created user entry should be visible on the Accounts page.

Adding shared files

After securing administrator access, you can start importing files that you want to share with your Meshnet peers.
  1. 1.
    On the HFS admin panel, select the Shared files section.
  2. 2.
    Click Add > From disk.
  3. 3.
    Choose the files or folders you want to be shared on your HFS web interface and click Select.
    Selecting folders to be shared on the server.
The selected files should now appear on the Shared files page under Virtual file system.
Shared files page showing the imported files for sharing.

Remotely download your files over Meshnet

After setting up the server, you can start using its functionality remotely over Meshnet. The shared files can be seen on the HFS front-end page.

Accessing HFS from remote devices

To access the HFS front-end page from remote devices in your Meshnet:
  1. 1.
    Copy the Nord name of the device running HFS from the NordVPN app.
  2. 2.
    Open your internet browser.
  3. 3.
    Paste the copied Nord name followed by a slash (/) to the URL field and press Enter. Example secret.meerkat-fuji.nord/
The HFS front-end page should load, showcasing all of the files that have been shared from the server.
HFS front-end website accessed using the Nord name.
Tip
To access the admin panel from a remote device, click Login in the upper-right corner and enter your administrator account credentials. Upon logging in, click Options > Admin-panel.

Downloading files

Once you have accessed the HFS front-end page, you can download your preferred files. You can choose to download individual files and folders or group multiple items into a single download.

Downloading individual items

  1. 1.
    Hover your mouse over the name of the item you want to download.
  2. 2.
    If it is a single file, click its name. If it’s a folder — click the Menu button next to its name.
  3. 3.
    Click Download to start downloading the item.
    Clicking 'Download' in the Folder menu dialog.

Downloading grouped items

  1. 1.
    Click the Select button at the top of the page.
  2. 2.
    Select the checkboxes next to the items you want to download.
  3. 3.
    In the upper-right corner, click ZIP to start the download.
    Clicking 'ZIP' to download selected files.
Now you can conveniently share files between remote computers and mobile devices using the HFS web interface over Meshnet.
© 2023 Nord Security. All Rights Reserved.