Opens a new socket when we need to connect.