title: MonoTorrent and metadata mode
body: <p>MonoTorrent client doesn't download file from another peer using matadata mode:</p>
  
  <pre><code>var torrentDefaults = new TorrentSettings {
     UseDht = true, 
     EnablePeerExchange = true
  };
  var engine = new ClientEngine();
  
  engine.ChangeListenEndpoint(new IPEndPoint(IPAddress.Any, port));
  
  var dhtListner = new DhtListener(new IPEndPoint(IPAddress.Any, port + 1));
  var dht = new DhtEngine(dhtListner);
  
  
  var infoHash = InfoHash.FromHex("07E45F689860166CC41E44C8F07901E3E8D27D42");
  var announces = new[] {
     new RawTrackerTier(new[] {"http://somehostname:8080/announce"})
  };
  
  var torrentManager = new TorrentManager(
     infoHash, downloadsPath, torrentDefaults, torrentsPath, announces);
  
  engine.Register(torrentManager);
  
  engine.RegisterDht(dht);
  dhtListner.Start();
  engine.DhtEngine.Start();
  engine.StartAll();
  </code></pre>
  
  <p>If I use torrent file insted of metadata everything works fine.</p>