Categories Menu
Repair Center
24 hours online support we repair all types of laptops and relating to LCD screen,motherboard, DC adapter, power supplies and so much more! The shop reliable laptop repair in Ottawa area since 1995. Repair your laptop as easy as 1-2-3 !
computer_25
Services for your location
How to change IP address from the Windows command line
print
report error
add to favorites
write a review
send to friends
suggest a topic
register
68.1.200 primary

To change the interface back to using DHCP and so have it allocated a different IP address
netsh interface ip set address "Local Area Connection" dhcp
netsh interface ip set dns "Local Area Connection" dhcp

Once I'd figured out the commands to use and put them together into two batch files (static.bat and dhcp.bat) I had a method that was sufficiently quick and easy to reproduce the bug I'd started out investigating.

However, this method has a significant drawback. Every time we toggle from static to DHCP or vice versa, the network interface goes down and back up again. This means we lose all connections to network drives, any existing telnet sessions, VNC sessions etc. Fortunately the client and the server I was debugging used a connectionless protocol (not TCP) and so the interface coming down did not prevent them from communicating further. However, with only one desktop machine at my disposal, debugging the server process running on a remote Linux box was proving to be difficult when the ssh session fell down each time.

With a bit of time and a lot of help from free and open source software, this problem can be overcome and we can change the effective IP address of our client program as seen from the server without tearing down all the ancillary connections needed to investigate what's going on. I'll explain how in the next installment.

 

2
next
Article Source: www.daybarr.com
Article Submitted On: 2009-12-01 22:18:41
This article has been viewed 172 time(s).
Other newly Articles from the Multimedia, Network ,Wi-Fi and Web - Web Guide / Internet Category:
  1. Run multiple sites from the same code base (multi-site)
  2. How to repair hijacked and juggled IE homepage?
  3. Unscramble Facebook—from design principle to architecture system
  4. MSN error codes(1)
  5. How to disable Back button in Internet browser
  6. Trick To Increase Browsing Speed for IE and Firefox
  7. How to Avoid False or Misleading Internet Advertising
  8. Internet Explorer Freezes Up
  9. How to Create Multiple User profiles in FireFox on Mac OSX
  10. How to Limit internet access to users?
  11. How to Change the Font size of Web page?
  12. 8 tips for handling email effectively
  13. Add and remove Internet Explorer 8 add-ons
  14. How to Speed Up a Slow Internet Connection
  15. How to Fix Broken and Slow Tab Issues in Internet Explorer 8
Custom Search
Examples: HP,laptop Rapair,LCD,DC Backlight,Inverter,solder
Article Comment:Replies(0)Views
Name(required):        Email(required):  
Verify: key
Use the above information at your own risk
Loading ... Loading ...