Giter Club home page Giter Club logo

ws-tcp-bridge's Introduction

ws-tcp-bridge

Project status: currently not in use so i dont know if its up to date with its dependencies. Feel free to use the code as an example however the only licensing restriction is let me know if its been helpful!

A websocket to tcp proxy server, using nodejs which bridges websockets and tcp servers in either direction.

WIP - the actual code is extremely simple, but not tested well (YET), feel free to help. working examples will be provided with some real services when I get time. NOTE - currently I only support binary ws frames which isnt implemented in alot of browsers... A workaround is simple to implement.

INSTALL -

nodejs must be installed first before using this server.

#install to current directory npm install ws-tcp-bridge ./node_modules/.bin/ws-tcp-bridge

#or install globally npm install -g ws-tcp-bridge ws-tcp-bridge

example -

$ ws-tcp-bridge --method=ws2tcp --lport=8080 --rhost=127.0.0.1:8081

proxy mode ws -> tcp forwarding port 8080 to 127.0.0.1:8081

$ ws-tcp-bridge --method=tcp2ws --lport=8080 --rhost=ws://127.0.0.1:8081

proxy mode tcp -> ws forwarding port 8080 to 127.0.0.1:8081

If you want to have negotiation of the target address consider forwarding to a socks5 proxy

ws-tcp-bridge's People

Contributors

andrewchambers avatar

Watchers

 avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.