Forums

socket.error: [Errno 111] Connection refused Twitch IRC

I have been making a IRC bot for my own channel on Twitch.TV. I know it works on my local machine, and there are no code issues. But when trying to run it here i get this error:

Traceback (most recent call last):
File "<stdin>", line 1, in <module>
File "Geekster_Bot", line 18, in <module>
irc.connect((server, 6667)) #connects to the server File "/usr/lib/python2.7/socket.py", line 224, in meth
return getattr(self._sock,name)(*args) socket.error: [Errno 111] Connection refused

I have tried changing ports and server addresses. I just cant figure it out! Any help would be grateful!

Could it be because the site you're trying to access isn't allowed? We restrict free users to a whitelist of sites... https://www.pythonanywhere.com/wiki/403ForbiddenError