Problem IPconfig

March 2017

The ipconfig command can be used to release and renew an IP address assigned to the computer from a server such as an ISP Server. Problems with the ipconfig command can occur if the internet access is not functioning properly. If the computer is connected to the internet, the netsh winsock reset command can be run from the command prompt to repair the winsock registry keys. The Windows XP SP2 must be installed for the netsh command. For operating systems that do not have the Windows XP SP2 installed, the Winsock entries have to be manually deleted from the Windows registry to solve the IPconfig command problem.
<a href='http://static.commentcamarche.net/ccm.net/faq/images/0-0O03leyh-windows-xp-logo-thumb.png'></a>

Problem


When executing the following command to Start> Run>

ipconfig /renew  

The below error message displays on your screen:

An error occurred while renewing interface Local Area Connection: the requested service provider could not be loaded or initialized.  

An error occurred while renewing interface 'Internet': An operation was attempted on something that is not a socket.  

The operation failed since no adapter is in the state permissible for this operation.  

Solution


1. Administrator
Ensure that you are logged on as Administrator.

2. Verify if internet access is functioning

Internet access not functioning

3. Ensure that your computer is connected to the internet.

4. Repair Winsock Registry keys

Under Windows XP SP2

Go to menu start and select Run.

Copy/paste the following command:

netsh winsock reset

See below image:-

For previous Operating system:

Open the Registry Editor by :

Menu Start/ Run and type regedit.(see below image)


Scroll to the following keys and delete it:

HKEY_LOCAL_MACHINE\System\CurrentControlSet\Services\Winsock  
HKEY_LOCAL_MACHINE\System\CurrentControlSet\Services\Winsock2  

Then import the content of the above mentioned keys from another computer.

Related


Published by deri58.
This document, titled "Problem IPconfig," is available under the Creative Commons license. Any copy, reuse, or modification of the content should be sufficiently credited to CCM (ccm.net).