LogoLogo
  • Getting Started
  • CLI
    • Docker
    • Config.yaml
  • GUI (SOON)
  • Tunnels Types
    • HTTP/s
      • HTTP/s plugins
      • HTTP/s apps
    • TLS
    • TCP
    • UDP
  • Reservations
    • Domain
    • Endpoint
  • Troubleshoot
    • Common errors
  • Tutorials
    • Expose a local web server
    • Expose Apache/Nginx web server
    • Share files from localhost
    • Use LocalXpose with Traefik
    • Expose PocketBase backend
    • Create a custom domain name
    • Make Let's Encrypt certificate
    • Access your IP camera remotely
    • Access your Raspberry Pi remotely
    • Sync your Keepass password manager
    • Expose localhost RASA chatbot for Telegram Integration
    • Expose your local Netdata Instance
    • Testing Stripe webhook
    • Expose localhost Kubernetes
    • Expose database server (PostgreSQL)
    • Exposing local Minecraft server
    • More Tutorials
Powered by GitBook
On this page
  • 1. Prepare the files
  • 2. Start a file server

Was this helpful?

  1. Tutorials

Share files from localhost

This tutorial will explain how to share files directly from your machine and protect the shareable link with username and password.

PreviousExpose Apache/Nginx web serverNextUse LocalXpose with Traefik

Last updated 2 years ago

Was this helpful?

1. Prepare the files

We have some private pictures that we want to share to our friends without uploading them to the cloud, just share them directly from our machine.

2. Start a file server

loclx tunnel http --subdomain mypics --basic-auth user:pass --file-server /home/pics

After creating the tunnel we can share the link to our friends, they need to enter the username and password for the protected tunnel as follow

If the username and password are correct, they can see the listing of files you shared

Pictures
Protected Tunnel
List of files
One of the files