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
See Question&Answers more detail:
os 与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…