i have seen in some examples that when they are explaining the sockets they write a sck.bind(('',PORT)) for server and a sck.connect(('',PORT)) for the client part but when i try to use this code it doesnt work but when i change the client part to sck.connect(('localhost',PORT)) it works fine.
so where is the problem?
and of course i dont really know what bind method does,i know that it binds the host to port but i dont know what this exactly mean ,if you are programming a server-client program when you have a server on the web what should you write in bind method.
s_jmp 0 Newbie Poster
tzushky 0 Junior Poster in Training
Be a part of the DaniWeb community
We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.