I'm currently building a torrenting client - effectively allowing users to download torrent files following the official BitTorrent protocol. When trying to test my project with torrent files, I find that almost every file I find online results in the following error:
ConnectionRefusedError: [WinError 1225] The remote computer refused the network connection
Some things I've attempted to solve the issue
- Different internet connections
- Different torrent files from different websites
- Different torrent clients with the same files
What I still should try
- Testing the same files on a different computer
Is there any suggestion or solution to this problem? Thanks in advance
Edit:
The actual line that causes the issue itself is from when I attempt to open the connection with the peer using asyncio's open_connection function.
This is the line that causes the error:
self.reader, self.writer = await asyncio.open_connection(self.peer.host,