Test creating socket and connect.
Connection refused error
Connection refused error in socket.