public String[] getAvailableInterfaces()

 	{

 		int counter = 0;

 		Enumeration it = NetworkInterfacetable.elements();

 		Enumeration it2 = NetworkInterfacetable.elements();

 		while(it.hasMoreElements())

 		{

 			NetworkInterface temp = (NetworkInterface)it.nextElement();			

 			if(temp.getConnectedLink() == null){

 				counter++;

 			}

      	} 

 		String strAvailInterfaces[] = new String[counter];

 		int iterator = 0;

 		while(it2.hasMoreElements())

 		{

 			NetworkInterface temp = (NetworkInterface)it2.nextElement();			

 			if(temp.getConnectedLink() == null){

 				strAvailInterfaces[iterator] = temp.getName();

 				iterator++;

 			}

      	} 		

 		return strAvailInterfaces;

 	}