Skip to content

Craigzyc/socket-tunnel

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

socket-tunnel

Tunnel HTTP Connections via socket.io streams. Inspired by localtunnel.

Blog Post

http://ericbarch.com/post/143994549052/tunneling-http-connections-via-socketio-streams

Server Usage

  1. Clone this repo and cd into it
  2. docker build -t socket-tunnel .
  3. docker run -d -p 80:3000 --restart=always --name st-server socket-tunnel
  4. Get a domain name
  5. Point your domain name's root A record at your server's IP
  6. Point a wildcard (*) A record at your server's IP

Client Usage

  1. Clone this repo and cd into it
  2. Configure REQUESTED_SUBDOMAIN and LOCAL_PORT in client.js
  3. Set TUNNEL_SERVER in client.js to point to your server's domain name
  4. node client.js
  5. Browse to http://REQUESTED\_SUBDOMAIN.YOURDOMAIN.com
  6. See your service running on http://127.0.0.1:LOCAL_PORT available on the public internet

TODO

Package this nicely and make it easy to use. Sorry, this was a quick reference implementation!

Credits

Created by Eric Barch.

License

This project is licensed under the MIT License - see the LICENSE file for details

About

Tunnel HTTP Connections via socket.io streams.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • JavaScript 100.0%