Giter Site home page Giter Site logo

jankolkmeier / node-upd-hole-punching Goto Github PK

View Code? Open in Web Editor NEW
67.0 14.0 21.0 87 KB

In this experiment it is attempted to use the UDP Hole punching technique to initiate a connection between two clients behind NAT (without port forwarding).

JavaScript 100.00%

node-upd-hole-punching's Introduction

Node UDP Hole punching

In this experiment it is attempted to use the UDP Hole punching technique to initiate a connection between two clients behind NAT (without port forwarding).

Goals

The first goal is to create a simple script that allows sending UDP packets from client to client, in both directions (current state). Future goals include the development of a library that offers this method in a more extensible manner.

Usage

A public machine acts as a rendezvous server (running rendezvous.js), two clients behind NAT start client.js. A client can ask the rendezvous server to help them him to connect to another client using the TCP hole punching procedure.

  1. Server node rendezvous.js

  2. Client A node client.js [server] [nameA]

  3. Client B node client.js [server] [nameB] [nameA]

node-upd-hole-punching's People

Contributors

jankolkmeier avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

node-upd-hole-punching's Issues

Was this successful?

Hi, this is more of question than an issue. Was this prototype successful in performing the hole punch?

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.