You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
//192.168.1.101:9879
var dhtPort = 20001
var serverPort = 9879
var Protocol = require('bittorrent-protocol')
var net = require('net')
net.createServer(function(socket) {
var wire = new Protocol()
// pipe to and from the protocol
socket.pipe(wire).pipe(socket)
wire.on('handshake', function(infoHash, peerId) {
console.log('handshake')
})
wire.on('unchoke', function() {
console.log('peer is no longer choking us: ' + wire.peerChoking)
})
}).listen(serverPort);
Im playing around with the code but keep getting this error when i tell utorrent to connect.
The text was updated successfully, but these errors were encountered: