Why are you attempting to bind then connect?

What does bind do?
Bind tells the computer, usually a server, hey, I(the socket) am associated with this port.

What is associcated with bind?
Listen. After binding a socket to a port, you call the listen method, which tells the server, that this socket is listening for incoming data on this port.

So you see bind is associated with listening, if you wish to connect a bind is not needed, only when you are listening. If you are creating a server, then connect is now being called, but rather connection requested, because your socket has received a connect request (with its bind and listen).