Quick Start
Get a local service publicly accessible in a few steps.
1. Install Exposr
bash
git clone https://github.com/Hrick-08/Exposr.git
cd Exposr
python -m pip install .2. Configure the relay server
Set the IP address of your Exposr relay server. This also generates a random agent token and saves it to ~/.exposr/agent_token.txt:
bash
exposr config set-server YOUR_SERVER_IPNote
You need access to a machine running the Exposr server. See the "Using Your Own Relay Server" guide for setup instructions.
3. Start your local application
Start any TCP service on your local machine. For example, a Python HTTP server:
bash
python -m http.server 30004. Expose it
bash
exposr expose 3000You should see output similar to:
exposr
[TRYING] Connecting to Exposr server [CONNECTED] Connected to Exposr control server [TRYING] Registering public port [CONNECTED] Tunnel active Public address: 20.198.81.254:25565 Forwarding to: 127.0.0.1:3000
5. Access from the internet
Anyone can now access your local service at the public address shown. For a web server:
text
http://SERVER_IP:25565Traffic arriving at the public port is forwarded through the Exposr tunnel to your local service on port 3000.