problem on socket programming

Diez B. Roggisch deets at nospam.web.de
Fri Jul 31 13:26:06 CEST 2009


MalC0de schrieb:
> On Jul 31, 12:07 pm, Chris Rebert <c... at rebertia.com> wrote:
>> On Fri, Jul 31, 2009 at 1:02 AM, MalC0de<malc0de.encr... at gmail.com> wrote:
>>> now I've been encountered to some errors with this snippet :
>> And these errors are? Provide error messages and full tracebacks.
>>
>> Cheers,
>> Chris
>> --http://blog.rebertia.com
> 
> these are errors :
> 
> Traceback (most recent call last):
>   File "echo-client.py", line 11, in <module
>     sockobj.connect((serverHost,serverPort))
>   File "<string>", line 1, in connect
> socket.error: (10061, 'Connection refused')

Can you ping and telnet to the port on the desired server? Firewalls can 
be an issue here.

Diez



More information about the Python-list mailing list