private static List<InetAddress> getAddressList() {
		List addressList = new ArrayList();
		try {
			for (Enumeration interfaces = NetworkInterface
					.getNetworkInterfaces(); interfaces.hasMoreElements();) {
				NetworkInterface networkInterface = (NetworkInterface) interfaces
						.nextElement();
				if ((networkInterface.isLoopback())
						|| (networkInterface.isVirtual())
						|| (!networkInterface.isUp()))
					continue;
				if (networkInterface.isPointToPoint()) {
					continue;
				}
				Enumeration addresses = networkInterface.getInetAddresses();
				while (addresses.hasMoreElements()) {
					InetAddress address = (InetAddress) addresses.nextElement();
					if (!address.isLinkLocalAddress())
						addressList.add(address);
				}
			}
		} catch (SocketException e) {
			e.printStackTrace();
		}
		return addressList;
	}