Mikrotik and Bittorrent

Hi All,
i’m facing an issue with bittorrent and maybe you already have the trick :slight_smile:
Mikrotik build: 3.41.3

Scenario 1:

  • 2 PCs with uTorrent
  • both PCs are on the same ether port and same IP range
  • PC1 detects the PC2 and downloads a file from the PC2
  • PC2 detects the PC1 and download from PC1

Scenario 2:

  • same 2 PCs with uTorrent
  • each PC on different ether port (PC1 on ether1 and PC2 on ether2)
  • each PC with a different IP range (PC1 with 172.16.1.x and PC2 with 172.16.2.x)
  • PCs do not detect its neighbour (PC1 or PC2)

i have tried with the NAT dstnat and uPNP settings, no way with the scenario 2.
is there a trick to solve that issue ?

thanks in advance for your advices :slight_smile:

bye John

UPnP won’t help you, because it adds dynamic dstnat rules with in-interface=, so they can’t work when connection originates from LAN. But static dstnat config must work, as long as you don’t do the same thing as UPnP does. In other words, use dst-address-type=local instead of in-interface option.

It will still be different from scenario 1. Local detection is fast. But with scenario 2, PC1 will get only the public address for PC2, and it will (most likely) treat it like any other peer. So it might take a while, before it decides to connect to it.

Hi Sob,
here is the NAT i tried:
chain=dstnat action=dst-nat to-addresses=172.16.1.203 protocol=udp dst-address-type=local log=no log-prefix=“”

“172.16.1.203” is the IP of the PC2 when i test utorrent from the PC1.
here there is no public IP, private only.

do i miss something or should it work ?
for the moment, with that NAT i see no good result so I think i’m missing something :astonished:)

thanks.
bye John

Two problems:

  1. Forwarding all udp ports would not work well, you need only the one set in uTorrent settings.
  2. If you don’t have public address on your router, then you’re out of luck, it won’t work at all. The only thing that could possibly work would be to add peer manually, if uTorrent would be willing to accept local address (I’m not sure).