I haven't tried using mongoDB before, but typically a timeout suggest that a connection was being refused due incorrect configuration. Try to set the connectionString instead like this:
var connectionString = @"mongodb://username%40REALM.com:password@myserver/?authMechanism=GSSAPI";
var client = new MongoClient(connectionString);