alexbers / mtprotoproxy

Async MTProto proxy for Telegram
MIT License
1.59k stars 351 forks source link

python proxy not work at all #244

Open A2116 opened 3 years ago

A2116 commented 3 years ago

python proxy does not work on any port and configuration the official work fine on the same server it prompts on service following line Unable to connect to 2001:67c:04e8:f004::a 443 also if I change from python 3.8 to python 3.6 os is centos 8.3

MohrezSheikh commented 3 years ago

Same here on ubuntu 18.04

jjjan commented 3 years ago

I changed the code enjoy https://github.com/jjjan/mtprotoproxy1 halesho bebarin

Mee1ad commented 3 years ago

I changed the code enjoy https://github.com/jjjan/mtprotoproxy1 halesho bebarin

thanks bro damet garm agha :)

seriyps commented 3 years ago

Another option is to add PREFER_IPV6 = False to config.py

alexbers commented 3 years ago

hi, the proxy tries to use ipv6 by default if it is available.

I added one more check if ipv6 is in good condition to use it: https://github.com/alexbers/mtprotoproxy/commit/6e8e8b63b26507310bbe550d5fbd6851f598f6e1 , hope it helps

noorbala7418 commented 3 years ago

hi @alexbers ! Same here this problem on ubuntu 18.04 LTS. I used Last version of yout code but didn't.

finally I added PREFER_IPV6 = False on top of config.py and it worked for me.

thanks