public static String testPort(String host, int port)
	{
		try
		{
			Socket socket = new Socket(host, port);
			if (socket == null)
				return "Could not create socket: returned null";
		}
		catch(IOException ioe)
		{
			return "" + ioe;
		}

		return null;
	}