Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Recovering from ipconfig /release on a remote PC [closed]

Not strictly a programming question, but I was programming at the time and couldn't find an answer, so I thought, "Hey, I'll give StackOverflow a try!"

So I'm connected to my Windows XP work PC over a Remote Desktop connection through VPN. In a command window (on the remote PC), I foolishly type ipconfig /release. A split second before I come to my senses, I hit Enter. D'oh!

So what now? Am I hosed until I get to the office Monday morning? Any way to remotely make my office PC get itself a new IP address?

like image 929
SWB Avatar asked Nov 02 '08 01:11

SWB


People also ask

How do I release and renew ipconfig remotely?

Go to "Start > Run" and type " cmd " (no quotes), then select "OK" Type " ipconfig /release " (no quotes) and press "Enter" Once the prompt returns, type " ipconfig /renew " (no quotes), then hit "Enter," Finally, type " exit " (without quotes) then press "Enter" to close the window.


3 Answers

If it makes you feel any better, most of us have done something similar. I can't offer a suggestion that doesn't involve human intervention, but I can offer two ways to prevent a "next time" for you:

  1. Look into a remote power controller. Cheap (inexpensive, hobbyist-grade) options are available through www.x10.com; other vendors (Pulizzi, DataProbe, etc.) provide more reliable solutions for a higher price. You may even be able to find a UPS that allows you to control it via a serial port.

    Plug your PC into the power controller, and find a second PC to control it. Now you can reboot your PC remotely, no matter how badly you de-configure it.

  2. Anticipate and compensate. It's reasonable to expect that you may need to release/renew the IP address again, so write a utility that will check for the loss of IP address and reboot if that occurs. For example, ping your default gateway and reboot if the ping fails consistently. Just be sure to anticipate the consequences of an unexpected reboot!

like image 66
Adam Liss Avatar answered Sep 30 '22 14:09

Adam Liss


Try giving a call to the office and get someone(if any) to restart your computer or ipconfig /renew

like image 35
Ray Lu Avatar answered Sep 30 '22 14:09

Ray Lu


What you need to do, is find some way to cut the power to your PC. Many PCs are configured by default to reboot if there is a power failure. So, just hack into your power grid, and shut off power to the entire building. Once your computer reboots, along with all the other equipment, your computer should have it's IP back.

like image 38
Kibbee Avatar answered Sep 30 '22 13:09

Kibbee