Comment corriger une erreur de socket (Winsock) sous Windows
Windows utilise le protocole Winsock pour communiquer sur Internet. Des programmes peuvent corrompre Winsock, provoquant des erreurs de socket ou empêchant l'accès aux ressources Internet (web, email, jeux). Certains programmes Internet doivent être réinstallés après réinitialisation de Winsock.
Windows XP
Étape 1–2 : Ouvrir l'éditeur de registre
« Démarrer » → « Exécuter » → « regedit » → Entrée. Naviguez vers :
HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\Winsock
Étape 3–4 : Sauvegarder
Fichier → Exporter → enregistrez sur support externe (clé USB, disque dur externe, carte SD, CD/DVD).
Étape 5 : Supprimer Winsock
Clic droit « Winsock » → « Supprimer » → « Oui ».
Étape 6–8 : Même chose pour Winsock2
Naviguez vers ...\\Winsock2, exportez (même support), supprimez, confirmez.
Étape 9–10 : Fermer l'éditeur
Étape 11–16 : Réinstaller TCP/IP
« Démarrer » → « Panneau de configuration » → « Connexions réseau ». Clic droit « Connexion au réseau local » → « Propriétés » → « Installer » → « Protocole » → « Ajouter » → « Disque fourni » → tapez C:\windows\inf → « OK » → Sélectionnez « Protocole Internet (TCP/IP) » → « OK » → Redémarrez.
Windows Vista et Windows 7
Étape 1–2 : Invite de commandes admin
« Démarrer » → tapez « cmd » → clic droit « cmd.exe » → « Exécuter en tant qu'administrateur » → « Continuer ».
Étape 3–4 : Réinitialiser Winsock
Tapez netsh winsock reset → Entrée. Puis exit → Entrée.
Étape 5–7 : Réparer la connexion
« Démarrer » → « Panneau de configuration » → « Affichage classique » (si besoin).
Vista : « Centre réseau et partage » → « Diagnostiquer et réparer ».
Windows 7 : « Rechercher et résoudre les problèmes » (système/sécurité) → « Afficher tout » → « Performances Internet Explorer » → « Suivant » → réparation auto → « Fermer ».
