I think I may have miss read your post. :(
It appears you only have 2 servers to check, and you know what their IP Address are.
You could then try something like this:
string[] _ftpURL = { @"100.100.0.0", @"101.0.0.0" };
string _UserName = "root";
string _Password = "310rp3";
int _Port = 2222;
string _ftpDirectory = "/home/root/systools/WM/WebMobility.db";
string LocalDirectory = "F:\\Explor\\final test";
bool online = false;
foreach(string furl in _ftpURL)
{
Sftp Connection = new Sftp(furl, _UserName, _Password);
try
{
Connection.Connect(_Port);
online = true;
}
catch
{
online = false;
}
if(online == true)
{
Connection.Get(_ftpDirectory, LocalDirectory);
Connection.Close();
break;
}
}