Expose a Local Web App
Make a local web application accessible from the internet.
Prerequisites
- Exposr CLI installed and configured
- A running Exposr relay server
- A local web application
Start your web app
Start your web application locally. For example, a simple Python HTTP server:
bash
python -m http.server 3000Or a Node.js application:
bash
node server.js # listening on port 3000Expose it
bash
exposr expose 3000exposr
[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
Access from the internet
Open a browser and navigate to:
text
http://SERVER_IP:25565The request is forwarded through the Exposr tunnel to your local web server on port 3000.