* @param ip The ip address of the machine running the registry.
* @param port The port number the registry is using.
* @return If the Source lookup was successful.
*/
public boolean connectServer(String name, String ip, String port) {
Source source = null;
try {
source = (Source) Naming.lookup("rmi://" + ip + ":" + port + "/" + name);
sources.add(source);
} catch (MalformedURLException e) {
return false;