How can I make sure if my connection was successful?