The code will now do a succsessful connection to the server