K
K
kos94ok2019-03-11 14:42:30
Python
kos94ok, 2019-03-11 14:42:30

Pythonanywhere won't connect to proxy, what should I do?

Connecting to a proxy

proxy = socks.SOCKS4, "" , 
client = TelegramClient('session_name' , api_id, api_hash, proxy=proxy)

Gives an error: Error connecting to SOCKS5 proxy : [Errno 111] Connection
refused

Answer the question

In order to leave comments, you need to log in

1 answer(s)
O
Oleg, 2019-03-11
@kos94ok

Free Pythonanywhere accounts can only make outbound connections to whitelisted sites:
https://www.pythonanywhere.com/whitelist/ .
If you need to make outgoing connections, then you should either switch to a paid account or look at alternatives.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question