Skip to main content

Share Files from Your Computer with a Secure Link

Need to send a folder of assets, PDFs, or build artifacts without uploading to a third-party cloud? Serve the directory with a tiny local web server, then publish it through an Asyx HTTP tunnel. Visitors get a normal HTTPS link; files stay on your machine until you stop sharing.

Overview

Folder on disk → python -m http.server → asyx tunnel → https://you.tunnel.asyx.ai

Only files inside the served directory are visible. Keep secrets elsewhere.

Step 1 — Pick the folder

Example: ~/share with documents you want to distribute.

Step 2 — Start a local web server

From the folder:

cd ~/share
python3 -m http.server 8000

Or serve without changing directory:

python3 -m http.server 8000 --directory ~/share

The server listens at http://127.0.0.1:8000.

Step 3 — Open the tunnel

In a second terminal:

asyx tunnel --http --port 8000

Share the printed https://*.tunnel.asyx.ai URL. Recipients browse files in the browser or download directly.

Step 4 — Stop sharing

Press Ctrl+C in both terminals when finished.

Optional: restrict who can access

For sensitive drops, attach a Quickpass security group:

asyx tunnel --http --port 8000 --secgroup friends

Create the group and members in the Asyx console. See Quickpass.

Tips

  • Use a dedicated folder—do not serve your home directory.
  • Pick another port (8001, 8080) if 8000 is busy.
  • Large files work; very large transfers count toward fair-use limits.
  • This is for quick shares and demos, not a replacement for object storage at scale.

Related guides

FAQ

Is listing directory contents enabled?
Python’s http.server shows an index page by default—convenient for shares, risky if misconfigured. Serve only the folder you intend.

Can I password-protect without Quickpass?
Your app server would need its own auth. Quickpass is the built-in Asyx option for HTTP tunnels.

Does this work on Windows?
Yes. Use Python’s module or any static file server, then tunnel its port.