You can wipe over the socks if the following conditions are met:
- Wearing the socks after doing a complete wudu including washing the feet.
- The socks must be pure (they have no filth on them or are not made from impure material).
- The wiping is only after the minor impurity and not the major impurity which requires taking off the socks and taking a full shower.
- The socks must cover the feet including the ankles.
- It must be within the allowed duration. The resident can wipe for 24 hours and the traveller has 72 hours. The timing for the wiping starts from the moment you do the first wiping over the socks.