Tip & How-To about Computers & Internet

How to change a ip through command prompt

Netsh” is a nifty utility to change system networking settings, locally or remotely.
To run Netsh click on start then RUN and type CMD press ENTER.
When the command prompt comes up type Netsh, now you should be ready to execute commands. Simple huh. Just to warm up type “interface ip show config“ that will show up the TCP/IP network settings.

Now, how you change the IP address and Default Gateway settings? To change the Local Area Connection TCP/IP settings type the following command:

interface ip set address name=”Local Area Connection” static 192.168.10.42 255.255.255.0 192.168.1.1

Posted by on

Computers & Internet Logo

Related Topics:

Related Questions:

2 Answers

I have a dell computer inspiron 530, windows vista. I need instructions on how to fix a winsock 10013 error. I have tried researching but this old gramma can't find any info. that she can understand ! Thanks so much for your time. Peg Bain


To repair and reset the Windows Vista
  1. Click on Start button.
  2. Type Cmd in the Start Search text box.
  3. Press Ctrl-Shift-Enter keyboard shortcut to run Command Prompt as Administrator. Allow elevation request.
  4. Type netsh winsock reset in the Command Prompt shell, and then press the Enter key.
  5. Restart the computer.
What netsh winsock reset command does are it resets Winsock Catalog to a clean state or default configuration. It removes all Winsock LSP (Layered Service Providers) previously installed, including the potential malfunctioned LSP that causes loss of network packets transmission failure. So all previously-installed LSPs must be reinstalled. This command does not affect Winsock Name Space Provider entries.

Feb 20, 2011 | Dell Inspiron 530 Desktop Computer

1 Answer

My computer is conected to the wireless router but my husbands new computer wont connect with the router - it keeps coming back with unsucessful. we have tried the pin code and the network key. please can u help?? and yes we have turned it all off and on again,


Right click on wireless icon on the tray,, select repair.

Check and repair Winsock corruption.
Click Start. In the Start Search dialog box, type: cmd, and right-click cmd.
Click Run as administrator.
Type: netsh winsock reset, and then press the ENTER key.
Type: Exit and press ENTER.
Restart the computer.

Reset the TCP/IP protocol.
Click Start. In the Start Search dialog box, type: cmd, and right-click cmd.
Click Run as administrator.
Type: netsh int ip reset, and then press ENTER.
Type: Exit and press ENTER.
Restart the computer.

If I could be of further assistance, let me know. If this helps or solves the issue, please rate it and give a testimonial for my response

Thanks, Joe

Jan 29, 2011 | Gateway Belkin F5D7230-4 802.11g Wireless...

1 Answer

cant connect to my wireless router and the 192.168.01 url entered doesnt help none


Windows XP
  1. Verify Ethernet adapter in device manger.
    1. Click Start > Search > Type in ncpa.cpl and press Enter.
    2. Click System>Hardware > Device Manager
    3. Click Network Adapters
    4. Verify adapter present, enabled, and no error messages.
    5. If error reported refer to OEM regarding error receiving
  2. Open the Network Connections window.
    1. Click on Start > Run > Type in ncpa.cpl and click OK.
  3. Double-click on the Local Area Connection icon.
  4. Click the Support tab.
    1. Ensure that Address Type: says "Assigned by DHCP."
    2. Ensure that the IP address is valid.
    3. If both are correct, click the Repair button and then skip to Step 9.
  5. If it does not say "Assigned by DHCP" click the General tab and then click Properties.
  6. Select "Internet Protocol TCP/IP" and then click on the Properties button.
  7. Ensure that the radio buttons are marked as "Obtain an IP Address automatically" and "Obtain a DNS Server address automatically" and click OK.
  8. Click OK again to close out of the Local Area Connection properties.
    1. Restart the system if any changes were made to the configurations.
  9. Right-click on Local Area Connection and select Repair.
  10. If the repair fails because the system is unable to flush the ARP Cache, the Routing and Remote Access service will need to be stopped and set to disabled.
    1. Click Start>Run>Type services.msc >Click OK.
    2. Double-click on Routing and Remote Access.
    3. Click the Stop button.
    4. Set Startup Type to Disabled and click Apply, then OK.
    5. Restart system.
  11. If the Repair fails to renew the IP address, ensure that all firewalls are disabled and try again.
  12. If it still fails, reset the networking protocols.
    1. Click Start>Run>Type CMD and click OK.
    2. Type netsh int ip reset reset.log and press Enter.
    3. Type netsh int ip delete arpcache and press Enter.
    4. Type netsh winsock reset and press Enter. (SP 2 or later)
    5. Type ipconfig /flushdns and press Enter.
    6. Restart the system.
Windows Vista
  1. Verify Ethernet adapter in device manger.
    1. Click Start > Search > Type in ncpa.cpl and press Enter.
    2. Click Hardware and Sound > Device Manager
    3. Click Network Adapters
    4. Verify adapter present, enabled, and no error messages.
    5. If error reported refer to OEM regarding error receiving
  2. Open the manage Network Connections window.
    1. Click Start > Search > Type in ncpa.cpl and press Enter.
  3. Right-click on Local Area Connection and select Properties.
  4. Uncheck Internet Protocol Version 6 (TCP/IPv6).
  5. Select "Internet Protocol Version 4 (TCP/IPv4)" and then click on the Properties button. (Do Not Uncheck Version 4).
  6. Ensure that the radio buttons are marked as "Obtain an IP Address automatically" and "Obtain a DNS Server address automatically" and click OK.
  7. Click OK again to close out of the Local Area Connection properties.
    1. Restart the system if any changes were made to the configurations, including unchecking TCP/IPv6.
  8. Right-click on Local Area Connection and select Diagnose.
  9. If Diagnose fails to renew the IP address, ensure that all firewalls are disabled and try again.
  10. If it fails again, choose to "Reset the Network Adapter."
  11. If it still fails, reset the networking protocols.
    1. Click Start>All Programs>Accessories.
    2. Right-click on Command Prompt and select "Run As Administrator"
    3. Type netsh int ip reset reset.log and press Enter.
    4. Type netsh int ip delete arpcache and press Enter.
    5. Type netsh winsock reset and press Enter.
    6. Type ipconfig /flushdns and press Enter.
    7. Restart the system.
Windows 7
  1. Verify Ethernet adapter in device manger.
    1. Click Start > Search > Type in ncpa.cpl and press Enter.
    2. Click Hardware and Sound > Device Manager
    3. Click Network Adapters
    4. Verify adapter present, enabled, and no error messages.
    5. If error reported refer to OEM regarding error receiving
  2. Open the manage Network Connections window.
    1. Click Start > Search > Type in ncpa.cpl and press Enter.
  3. Right-click on Local Area Connection and select Properties.
  4. Uncheck Internet Protocol Version 6 (TCP/IPv6).
  5. Select "Internet Protocol Version 4 (TCP/IPv4)" and then click on the Properties button. (Do Not Uncheck Version 4).
  6. Ensure that the radio buttons are marked as "Obtain an IP Address automatically" and "Obtain a DNS Server address automatically" and click OK.
  7. Click OK again to close out of the Local Area Connection properties.
    1. Restart the system if any changes were made to the configurations, including unchecking TCP/IPv6.
  8. Right-click on Local Area Connection and select Diagnose.
  9. If Diagnose fails to renew the IP address, ensure that all firewalls are disabled and try again.
  10. If it fails again, choose to "Reset the Network Adapter."
  11. If it still fails, reset the networking protocols.
    1. Click Start>All Programs>Accessories.
    2. Right-click on Command Prompt and select "Run As Administrator"
    3. Type netsh int ip reset reset.log and press Enter.
    4. Type netsh int ip delete arpcache and press Enter.
    5. Type netsh winsock reset and press Enter.
    6. Type ipconfig /flushdns and press Enter.
    7. Restart the system.
I hope this helps

Oct 01, 2010 | Computers & Internet

1 Answer

my IE 8 will not open any web sites


Is your Network Connections working properly?

If your networking adapters are functioning OK, try this,

Open IE
Tools tab > Internet Options > restore Adanced Settings and Reset Internet Explorer settings.
Restart IE.

Other options are:
1) Uninstall the Network adapter
Open Device Manager > Expand Network Adapter > Right Click on your internet network adapter and Uninstall
Reboot

If it doesn't work, try it again and then reinstall the driver. You may have to get the new driver from the device website.

2) Winsock and Tcp/Ip Fix
Start > Run > Type CMD > Type the following:
Reset TCP/IP stack to installation defaults,
type: netsh int ip reset reset.log and Press Enter

Reset WINSOCK entries to installation defaults,
type: netsh winsock reset catalog and Press Enter

3) Run sfc /scannow (This will restore your system files back to original state)
Insert your XP disc
Start > Run > Type CMD > Type the following:
sfc /scannow

Hope it helps.

Jul 15, 2010 | Microsoft Internet Explorer 8

1 Answer

REQUEST TIME OUT PROBLEM THEN PING DEFAULT IP 169.254.1.1


The ip address is Static Ipaddress . Tried to do ipconfig /release then ipconfig /renew. Check the ipaddress it should be a different ip address. If your are getting the same 169.254.1.1 ip address . Need to remove and reinstall Winsoc. Backup the registry before performing winsock troubleshooting.

Remove the Winsock Settings
To remove the Winsock settings in Microsoft Windows XP, use one of the following methods, as appropriate for the Windows XP service pack that is installed.
Determine Your Service Pack Level
To determine the service pack level that Windows XP is running, use an account that has Administrator rights and follow these steps:
  1. Click Start, and then click Run.
  2. In the Run window, type sysdm.cpl in the Open box, and then click OK.
  3. In the System Properties window, on the General tab, note the service pack level that appears under System. For example, information that resembles the following may appear:
    Microsoft Windows XP
    Professional
    Version 2002
    Service Pack 2
For Computers Running Microsoft Windows XP Service Pack 2
On a computer that is running Windows XP Service Pack 2, you can use the Netsh command to reset the Winsock settings to the default configuration:
  1. Click Start, and then click Run.
  2. In the Run window, in the Open box, type cmd, and then click OK.
  3. At the cmd.exe screen, type netsh winsock reset catalog, and then press <Enter>.
    The following message appears:
    Successfully reset the Winsock Catalog.
    You must restart the machine in order to complete the reset.
  4. Type exit, and then press <Enter> to quit the cmd.exe screen.
  5. Restart the computer.
For Computers Running Microsoft Windows XP Service Pack 1 and Earlier
To remove Winsock settings from a computer that is running Windows XP Service Pack 1 or from a computer that is running the original release version of Windows XP, follow these steps:
  1. Click Start, and then click Run.
  2. In the Run window, in the Open box, type regedit, and then click OK.
  3. In the Registry Editor window, click the plus sign (+) that is next to HKEY_LOCAL_MACHINE to expand the HKEY_LOCAL_MACHINE registry hive.
  4. Click the plus sign to expand the SYSTEM subkey, click the plus sign to expand the CurrentControlSet subkey, and then click the plus sign to expand the Services subkey.
  5. Under the Services subkey, click the Winsock subkey.
  6. On the File menu, click Export.
  7. In the Export Registry File window, in the File name box, type winsock.reg, and then click Save.
    The Winsock registry subkey is saved in the My Documents folder as winsock.reg.
  8. Right-click the Winsock subkey, and then click Delete.
  9. In the Confirm Key Delete window, click Yes to confirm the removal of the Winsock subkey.
  10. Click the Winsock2 subkey.
  11. On the File menu, click Export.
  12. In the Export Registry File window, in the File name box, type winsock2.reg, and then click Save.
    The Winsock2 registry subkey is saved in the My Documents folder as winsock2.reg.
  13. Right-click the Winsock2 subkey, and then click Delete.
  14. In the Confirm Key Delete window, click Yes to confirm the removal of the Winsock2 subkey.
  15. Quit the Registry Editor program, and then restart the computer.

» Reinstalling the Winsock Settings in Microsoft® Windows® XP
Use an account that has Administrator rights and perform the following steps:
  1. Click Start, and then click Run.
  2. In the Run window, in the Open box, type ncpa.cpl, and then click OK.
  3. In the Network Connections window, right-click Local Area Connection, and then click Properties.
  4. On the General tab, click Install.
  5. In the Select Network Component Type window, click Protocol, and then click Add.
  6. Click Have Disk.
  7. In the Copy manufacturer's files from box, type c:windowsinf, and then click OK.
  8. In the second Select Network Protocol window, under Network Protocol, click Microsoft, click Internet Protocol (TCP/IP), and then click OK.
  9. In the Local Area Connection Properties window, click Close.
  10. Restart the computer.
  11. After the computer has started successfully, click Start, and then click Run.
  12. In the Run window, in the Open box, type cmd, and then click OK.
  13. At the cmd.exe screen, type netsh int ip reset delllog.txt, and then press <Enter>.
The Winsock settings are reinstalled.

Aug 18, 2009 | Motorola CANOPY 2400AP (2400APBC)

Not finding what you are looking for?

849 people viewed this tip

Ask a Question

Usually answered in minutes!

Top Computers & Internet Experts

Doctor PC
Doctor PC

Level 3 Expert

7733 Answers

kakima

Level 3 Expert

102366 Answers

David Payne
David Payne

Level 3 Expert

14161 Answers

Are you a Computer and Internet Expert? Answer questions, earn points and help others

Answer questions

Loading...