public boolean registrosi(String fecha,String IP)
    {
        ResultSet res;
         try {
            res = st.executeQuery("select IP,Fecha from registro");
            while(res.next())
            {                 System.out.println(IP);
                              System.out.println(String.valueOf(res.getObject(1)));
                          if(IP.equals(String.valueOf(res.getObject(1))))
                          {
                              System.out.println(fecha);
                              System.out.println(String.valueOf(res.getObject(2)));
                              if(fecha.equals(String.valueOf(res.getObject(2))))
                              {
                                  return false;
                              }
                          }
            }
            return true;
        } catch (SQLException ex) {
            System.out.println(ex.toString());
            return false;
        }
         
    }