chenjiandongx / magnet-dht

✌️ Python3 BitTorrent DHT crawler
MIT License
947 stars 284 forks source link

国内网络 #2

Closed pengwon closed 5 years ago

pengwon commented 6 years ago

这个在国内是不是不能用?我打开后一直没有反应。 tim 20180707154909

chenjiandongx commented 6 years ago

国内网络没问题,关了再多试几次估计就可以了

pengwon commented 5 years ago

试了几次好像还是不行。可以贴张图看看如果成功的话再这两行下边显示啥吗?

pengwon commented 5 years ago

今天在我的香橙派上又试了几次,跟在PC上不太一样,弹出那两行信息后直接退了, image求大神指点到底是什么问题,怎么解决?需要我提供哪些有用的信息。

chenjiandongx commented 5 years ago

@pengwon 我忘了说这点了,Windows 和 Linux 的线程/进程机制不太相同

我的服务器上的代码是这样的

image

pengwon commented 5 years ago

@chenjiandongx 多谢指点。可我这边还是不行。有什么调试手段能分析出我的问题出在哪里吗?

chenjiandongx commented 5 years ago

你那边现在的具体问题是什么

pengwon commented 5 years ago

@chenjiandongx 运行程序后redis一直查询不到有magnet image image 已经按照您说的修改了派上的代码

chenjiandongx commented 5 years ago

可以试着调 utils.py 里面的 NEIGHBOR_END 常量,增大到 14 或者 16,然后多关闭程序重新启动试试

chenjiandongx commented 5 years ago

@pengwon 重新拉取代码在本地跑试试,我优化了一下

pengwon commented 5 years ago

@chenjiandongx 可能是我这边网络问题,还是不行。在win10上需要特别开防火墙吗?我这倒是好几个bt工具都不好使,就transmission勉强能用。

chenjiandongx commented 5 years ago

要不你换个网络试一下吧 我这边防火墙也没关 也都可以正常运行

pengwon commented 5 years ago

@chenjiandongx 嗯,感谢耐心解答,谢谢。

pengwon commented 5 years ago

应该就是网络环境的问题,我所处的网络没有公网IP。在腾讯云上试了一下,可以跑起来。