Connect/Disconnect Internet using a command prompt

original title: Connect/Disconnect Internet

Is it possible to disconnect & reconnect my cable internet connection from a command line in Windows XP?

 

Question Info


Last updated May 13, 2019 Views 12,462 Applies to:
Answer
Answer
Hey John,

I'm not sure if there is a way to disable the internet connection for the modem or router by command line in windows. There's probably a way to disable the network adapter on the local machine through command line, but I myself do not know which commands to use.

I do know, however, that if you drop your IP address, your connection will be terminated. You can do this in the command line by using the command "ipconfig /release" without quotes. This will drop your IP address causing your connection to go down.

You can bring it back up by renewing your IP address. This can be done in the command line by using the command "ipconfig /renew" again without the quotes.

Note* I believe you'd have to be system administrator as well to perform these commands.

Now I'm sure this isn't the best way to do this but this way will definitely get the job done.

Hope this helps.

11 people were helped by this reply

·

Did this solve your problem?

Sorry this didn't help.

Great! Thanks for marking this as the answer.

How satisfied are you with this reply?

Thanks for your feedback, it helps us improve the site.

How satisfied are you with this response?

Thanks for your feedback.