hi pythoners,
i have problem in understanding bind method of socket module
i have read many articles and even pythons help and docs but i couldnt feel what it really is
so anyone can help me please?

when you create a socket, you need to bind it with a port, address so other sockets have something to connect to.

sock = socket.socket(socket.AF_INET, socket.SOCK_STREAM)
sock.bind((address, port))
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.