Tunnel HTTP Connections via socket.io streams. Inspired by localtunnel.
http://ericbarch.com/post/143994549052/tunneling-http-connections-via-socketio-streams
- Clone this repo and cd into it
- docker build -t socket-tunnel .
- docker run -d -p 80:3000 --restart=always --name st-server socket-tunnel
- Get a domain name
- Point your domain name's root A record at your server's IP
- Point a wildcard (*) A record at your server's IP
- Clone this repo and cd into it
- Configure REQUESTED_SUBDOMAIN and LOCAL_PORT in client.js
- Set TUNNEL_SERVER in client.js to point to your server's domain name
- node client.js
- Browse to http://REQUESTED\_SUBDOMAIN.YOURDOMAIN.com
- See your service running on http://127.0.0.1:LOCAL_PORT available on the public internet
Package this nicely and make it easy to use. Sorry, this was a quick reference implementation!
Created by Eric Barch.
This project is licensed under the MIT License - see the LICENSE file for details