[Errno 10061] No connection could be made because the target machine actively refused it
- by user551717
I've tried to connect to my local machine every time I try and run my program.
I am a nub, so it's probably a simple mistake somewhere.
def connect(self):
self.conn = socket.socket(socket.AF_INET, socket.SOCK_STREAM)
self.conn.connect((self.host,self.port))
That is the code causing the error.
The host and port are defined.
Why is it giving me this error report?
[Errno 10061] No connection could be made because the target machine actively refused it