A torrent seeder and leecher using go
The Torrent implementation here can download from remote seeders but the seeder can only seed to local peers.
run the code: go run main.go
once the leecher has finished downloading the file then you can replace the peers found by the tracker with your own peer that is running in the same network.
to do that follow the steps below:
- go to the peers.go file
- comment out line 19
- uncomment line 20
- comment out lines [33-35]
- uncomment lines 36 and 37.
- run the command go run main.go .