Giter VIP home page Giter VIP logo

docker-bootstrap-dht's Introduction

Docker DHT bootstrap server

A Docker Image containing the official BitTorrent DHT bootstrap server which BitTorrent clients can use as an introducer to a DHT network, such as the public ones running at router.utorrent.com and router.bittorrent.com.

Running a DHT bootstrap server

docker run -d \
    --restart=unless-stopped \
    -p 6881:6881 \
    --net=host \
    --name bootstrap-dht \
    monokal/bootstrap-dht:latest \
    0.0.0.0 \
    --threads 1

Further details on the available bootstrap-dht options can be found here.

Testing

A test_dht.py script can be found in the bootstrap-dht repo.

./test_dht.py 0.0.0.0 6881

=== TESTING DHT PING ===
ping 69 -> 0.0.0.0:6881
<--  {'y': 'r', 'ip': '\x7f\x00\x00\x01\x90t', 'r': {'id': 'HgNg#\x94\x82\xda\xbc\xec4S\xff\x1f\x95x\xfe\xec\xbd\x00'}, 't': '69'}
*** Passed ***
find_node 209 -> 0.0.0.0:6881
<--  {'y': 'r', 'ip': '\x7f\x00\x00\x01\x90t', 'r': {'nodes': '', 'id': 'HgNg#\x94\x82\xda\xbc\xec4S\xff\x1f\x95x\xfe\xec\xbd\x00'}, 't': '209'}
received 0 nodes
*** Passed ***

Building the Docker Image

docker build -t monokal/bootstrap-dht:latest .

Contributions

To contribute to this Docker Image, just open a pull request. To contribute to the bootstrap-dht source, head over to the official repo.

docker-bootstrap-dht's People

Contributors

monokal 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.