Skip to content

zanesense/AutoHost

Folders and files

NameName
Last commit message
Last commit date

Latest commit

Β 

History

2 Commits
Β 
Β 
Β 
Β 

Repository files navigation

πŸš€ AutoHost

"Expose your local server to the world seamlessly!"

GitHub Repo Size GitHub Stars GitHub Forks GitHub Issues License Python


🎯 Overview

AutoHost is a one-stop localhost tunneling tool that makes your local web server publicly accessible in seconds.
Forget manual setups! AutoHost automatically handles:

  • Installing required tunneling tools (ngrok, localtunnel, cloudflared, Serveo, Pinggy, Localxpose)
  • Configuring auth tokens
  • Persistent user settings
  • Graceful tunnel termination on CTRL+C

⚑ Features

  • Auto-install and verify required CLI tools
  • Multi-tunnel support:
    • ngrok, localtunnel (lt), cloudflared, Serveo (SSH), Pinggy (SSH), Localxpose (lx)
  • Public URL detection in real-time
  • Remember last used port, tunnel service, and www path

πŸ›  Installation

Linux (Debian/Ubuntu):

git clone https://github.com/zanesense/AutoHost.git
cd AutoHost
sudo apt update
sudo apt install -y python3 python3-pip nodejs npm ssh

Run the tool:

python3 auto-host.py

The first time you use AutoHost, it will automatically install missing tools like ngrok, localtunnel, or cloudflared.


πŸš€ Usage

  1. Run python3 auto-host.py.
  2. Select your tunneling service.
  3. Enter the local port your server runs on (e.g., 8000).
  4. Specify the www directory (default: ./www) or leave blank.
  5. If needed, enter AuthToken (only for ngrok).
  6. Watch your public URL appear in real-time.

Open the public URL in your browser to share your server instantly! 🌐


πŸ“¦ Supported Tunnels

Service Requires Auth Auto-install
ngrok βœ… βœ… (via apt)
localtunnel (lt) ❌ βœ… (via npm)
cloudflared ❌ βœ… (via apt)
Serveo (SSH) ❌ ❌
Pinggy (SSH) ❌ ❌
Localxpose (lx) ❌ βœ… (via curl script)

πŸ’‘ Tips

  • Ensure the port you choose is open and accessible.
  • To terminate all tunnels at any time, press CTRL+C.
  • Update your tools for the latest features and security.

πŸ“œ License

MIT License © 2025 AutoHost Built with ❀️ by zanesense

About

Expose your local server to the world seamlessly!

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages