public static final String[] getIPAddresses()
		throws SocketException
	{
		HashSet<String> ipSet = new HashSet<String>();

		NetworkInterface iface = null;
		for(Enumeration ifaces = NetworkInterface.getNetworkInterfaces(); ifaces.hasMoreElements();)
		{
			iface = (NetworkInterface)ifaces.nextElement();
			InetAddress ia = null;
			for(Enumeration ips = iface.getInetAddresses(); ips.hasMoreElements();)
			{
				ia = (InetAddress)ips.nextElement();
				String k = ia.getHostAddress();
				if(RegexLibrary.matches(RegexLibrary.IP_ADDRESS, k) && !k.equals("127.0.0.1"))
				{
					ipSet.add(k);
				}
			}
		}

		String[] ipArray = new String[ipSet.size()];
		int x = 0;

		for(String k : ipSet)
		{
			ipArray[x++] = k;
		}

		return ipArray;
	}