I'm trying to download a torrent from MonoTorrent , the problem is that when I look at the network traffic in wirehark, it seems, for example, the client is not even trying to contact the tracker. It correctly reads the torrent file, and the visual studio does not display errors.
This is the code I'm using:
public Form1()
{
EngineSettings settings = new EngineSettings();
settings.AllowedEncryption = EncryptionTypes.All;
settings.SavePath = Path.Combine(Environment.CurrentDirectory, "torrents");
if (!Directory.Exists(settings.SavePath))
Directory.CreateDirectory(settings.SavePath);
engine = new ClientEngine(settings);
engine.ChangeListenEndpoint(new IPEndPoint(IPAddress.Any, 6969));
Torrent torrent = Torrent.Load("C:/Users/xxx/Google Drive/WindowsFormsApplication1/WindowsFormsApplication1/bin/Debug/kontakt.torrent");
TorrentManager manager = new TorrentManager(torrent, engine.Settings.SavePath, new TorrentSettings());
engine.Register(manager);
manager.Start();
}
I really appreciate any help or if anyone knows about some alternative
source
share