Home > other >  Python socket. The error [errno111] connection refused
Python socket. The error [errno111] connection refused

Time:10-01

I tried to use python to grab web advertising recommended, but in the Ubuntu terminal runtime appeared the following error: , I doubt is self _send_command (' GOTO % s' % url) of the problem, but I should be how to change to give it access to the specified website?
Detailed code is as follows:

CodePudding user response:

S.c onnect ((' localhost ', the self. Post)) the problem of error causes connection was rejected, confirm whether the machine (localhost) under a socket server, you write 127.0.0.1, socket service write localhost at no

CodePudding user response:

reference 1/f, excrement g Lang response:
s.c onnect (' localhost ', the self. (post)) the problem of error causes connection was rejected, confirm whether the machine (localhost) under a socket server, you write 127.0.0.1, socket service write localhost wondering at no


Bosses, problem solving, to ask why have to 127.0.0.1
  • Related