Forums

[Discord Bot] Cannot connect to discord.com port 443

Hello,

I am trying to setup a discord bot and me and a friend of mine get this error when we run the application.

  aiohttp.client_exceptions.ClientConnectorError: Cannot connect to host discord.com:443 ssl:default [Connect call failed ('162.159.137.232', 443)]  

I have the free plan, whilst he is the one owning the application on top of a paid account.

Any ideas would be appreciated

update1:

I tried to use curl and wget to get a resource not listen in the whitelisted ones for a free account. Both our account got a 403 Forbidden status code

Unfortunately Discord won't work in free accounts. Although we've put it on the allowlist, the most popular library for connecting to it does not allow tunneling through proxies, which is required for Internet access from free accounts.