[Tutor] Socket Programming

Alan Gauld alan.gauld at btinternet.com
Sat Apr 6 20:22:28 CEST 2013


On 05/04/13 11:47, Mousumi Basu wrote:

>
> s=socket.socket(socket.AF_INIT,socket.SCK_DGRM))

There is a double )) at the end of the line.
That should give a different error so I assume this is
not cut 'n paste code, but just in case I thought
I'd point it out...

> s.bind(('172.18.2.11',8032))

Because I can't see anything wrong here.

> But error is occurring showing "bind not done"

Can you send the full error text via cut 'n paste please?

-- 
Alan G
Author of the Learn to Program web site
http://www.alan-g.me.uk/



More information about the Tutor mailing list