In Bittorrent how to announce utp port for other peers

51 views Asked by At

I'm developing a torrent client in Dart, but while implementing utp socket I see no way to announce the utp port looking at the specifications of the main peer discovery mechanisms bep0003 bep0005 I see that they both talk about announcing the tcp port and no talk about announcing the utp port.

Is there some specification/extension to announce to tracker/dht that my port is utp and not tcp? or should peer try to connect to the port using tcp and then try utp if it fails to connect?

1

There are 1 answers

2
the8472 On

It's assumed that the TCP and UDP port numbers are the same.