fix na conexao do socket