Giter VIP home page Giter VIP logo

p2p-tracker's Introduction

p2p-tracker

A heroku-ready webtorrent tracker for use with P2P applications.

Deploy | Remix on Glitch

Usage

  • Deploy to heroku using the button above
  • Or run locally by cloning this repo, then npm install => npm start
    • Edit server.js to specify a static port. By default, a random port is used.

p2p-tracker's People

Contributors

draeder avatar hello-smile6 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

Watchers

 avatar  avatar  avatar

p2p-tracker's Issues

heroku[router]: at=error code=H15 desc="Idle connection" method=GET path="/"

Heroku repeatedly produces the following error after a client connects to the tracker:

2021-02-13T16:54:08.583372+00:00 heroku[router]: at=error code=H15 desc="Idle connection" method=GET path="/" host=ws.peer.ooo request_id=344c3552-3eb5-4ae6-a989-50bd1b6d933d fwd="123.123.123.123" dyno=web.1 connect=0ms service=56234ms status=503 bytes= protocol=https

Due to the nature of BitTorrent trackers, web sockets is used only to establish communication between peers. No further connection is needed once the peers are connected, so the web sockets channels are closed.

This is a benign error, and will not be addressed. See: https://stackoverflow.com/a/59941248/1551027

Never finds peers using Bugout.js

Hi Draeder!

Thank you so much for this. I left a note here: chr15m/bugout#43 (comment)

But felt it might make more sense to open the discussion here instead.

When I use this code:

var b = new Bugout("foo.bar", {"announce": ["wss://my-deployment.herokuapp.com"]});

My Bugout instance never finds any peers. Remove the "announce" option, (and refreshing until I actually do get a connection to wss://hub.bugout.link) does work as expected.

Am I missing any steps you took to get this working on your end? :)

Alternative free housing since Heroku free was discounted?

Thanks for this! It's cool and I used it for a while to support a bugout based p2p game side project. It worked great, and it's hard to beat the convenience of one click, but I put the project down for a while and when I came back, Heroku free was no more.

Any pointers to other free / easy hosting are appreciated!

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.