It's a simple NGROK alternative.
This repository contains two apps that can make a proxy between localhost and a domain on your server. All communication is via the WebSocket. The client app connects to the server application through the WebSocket.
Functionality:
- HTTP requests
- WebSocket (is not supported)
Requirements
- Node.js Platform
+19
- Total.js v5 framework
$ npm install total5
The server app must be hosted on your server and must be available via HTTP protocol because the client will connect to it via WebSocket. This app is a standard Total.js web app.
Installation:
- install Node.js Platform
- install dependencies (only Total.js v5):
cd server
npm install
npm start
# or run it via: node index.js
The client app connects to the proxy server app. After the client connects, the server will "redirect" all HTTP requests to your local port.
Installation:
- install Node.js Platform
- install dependencies (only Total.js v5):
cd server
npm install
node client.js http://yourserverproxy.com 8000
# node client.js http://yourserverproxy.com 127.0.0.1:8000
# Help:
# node client.js SERVER_ENDPOINT LOCAL_PORT
# node client.js SERVER_ENDPOINT LOCAL_HOST:LOCAL_PORT