M
M
Matvey Kot2020-09-16 13:02:37
linux
Matvey Kot, 2020-09-16 13:02:37

How to solve [Errno 111] Connection refused error when starting Userbot with pyrogram?

When running a Userbot (written in python + pyrogram) on pythonanywhere (Even with the --user attribute), an error occurs: [Errno 111] Connection refused
5f61e2b71834f283855062.png

Answer the question

In order to leave comments, you need to log in

3 answer(s)
D
Dr. Bacon, 2020-09-16
@bacon

ok google, "pythonanywhere connection refused"

V
vreitech, 2020-09-16
@fzfx

you need to figure out if there is an attempt to connect from the side of the bot or to it; by IP address or by domain name; via TCP or UDP protocol; whether the appropriate port is listening on the destination; and after that troubleshoot.

S
shurshur, 2020-09-16
@shurshur

Free pythonanywhere accounts only allow connections to whitelisted addresses.
https://www.pythonanywhere.com/whitelist/

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question