https://github.com/rohanmathur91/tunnel
Tunnel a mini ngrok like tool which exposes your localhost to public internet.
https://github.com/rohanmathur91/tunnel
golang localhost ngrok proxy tunneling websocket
Last synced: 5 months ago
JSON representation
Tunnel a mini ngrok like tool which exposes your localhost to public internet.
- Host: GitHub
- URL: https://github.com/rohanmathur91/tunnel
- Owner: rohanmathur91
- Created: 2025-10-04T17:11:01.000Z (9 months ago)
- Default Branch: master
- Last Pushed: 2025-10-18T19:51:09.000Z (8 months ago)
- Last Synced: 2025-10-19T11:47:29.141Z (8 months ago)
- Topics: golang, localhost, ngrok, proxy, tunneling, websocket
- Language: Go
- Homepage:
- Size: 4.2 MB
- Stars: 1
- Watchers: 0
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
## Tunnel
### A minimal ngrok-like tool that exposes local servers to the public internet via websocket tunnels.
### Steps to setup servers:
Start server:
```sh
go run main.go
```
Build client:
```sh
cd ./cli
go build -o tunnel ./
```
Start client - gives public URL
```sh
./tunnel --port 3000 #local server port
```
Start test server or use any local server:
```sh
cd ./test-server
go run main.go
```
Test tunnel:
```txt
curl [Public URL]
```
### Demo:
Start the server, build the client, and expose the localhost port:
https://github.com/user-attachments/assets/24905fe6-8bd8-49b7-a892-9704178d66f6
Run test server and hit the request:
https://github.com/user-attachments/assets/f4257b0f-e064-4c21-b462-eda5b76252dc