Quick disconnect from network/Internet ?

Doomer

Diamond Member
Dec 5, 1999
3,721
0
0
Obviously TPTB don't want people disconnecting at their leisure but there are times when I'd like to block any and all network traffic into and out of my computer. I'd prefer this be a one click or double click solution. i know I can go into "Network Places" and disable the connection but I'd like to have an easier way.

I'd also prefer that the disconnect be absolute rather than selective (i.e. no MS solution is acceptable).

TIA

 

jlazzaro

Golden Member
May 6, 2004
1,743
0
0
most software firewalls (zonealarm, tiny, etc) have this option via their system tray icon
 

JackMDS

Elite Member
Super Moderator
Oct 25, 1999
29,516
407
126
Make and save two bat files (simple text files saved with the extension .bat)

One contains the line: ipconfig /release

Save it and Call it "Release Net.bat" and drag a shortcut to the Desktop, or any place of your choice.

One contains the line: ipconfig /renew

Save it and Call it "ReNew Net.bat" and drag a shortcut to the Desktop, or any place of your choice.

Open the properties of the both shortcuts and under the Short Cut Tab choose to Run Minimized (this is Not a must but it makes it neater.

Every time you want to Disconnect Double click on the Release Icon. Connect back by Double clicking on the Renew.

What it does.

It releases the TCP/IP stack and thus No network/Internet

The second file renews the stack.

The advandege over other types of configuration (like blocking with the Firewall)?

Next time when you boot the computer does not matter how youy left it, it comes back up by itself and you do not need to be surprised "Why the hack I do not have Internet"?
 

compman25

Diamond Member
Jan 12, 2006
3,767
2
81
Originally posted by: JackMDS
Make and save two bat files (simple text files saved with the extension .bat)

One contains the line: ipconfig /release

Save it and Call it "Release Net.bat" and drag a shortcut to the Desktop, or any place of your choice.

One contains the line: ipconfig /renew

Save it and Call it "ReNew Net.bat" and drag a shortcut to the Desktop, or any place of your choice.

Open the properties of the both shortcuts and under the Short Cut Tab choose to Run Minimized (this is Not a must but it makes it neater.

Every time you want to Disconnect Double click on the Release Icon. Connect back by Double clicking on the Renew.

What it does.

It releases the TCP/IP stack and thus No network/Internet

The second file renews the stack.

The advandege over other types of configuration (like blocking with the Firewall)?

Next time when you boot the computer does not matter how youy left it, it comes back up by itself and you do not need to be surprised "Why the hack I do not have Internet"?

You sure?
 

Doomer

Diamond Member
Dec 5, 1999
3,721
0
0
Originally posted by: JackMDS
Make and save two bat files (simple text files saved with the extension .bat)

One contains the line: ipconfig /release

Save it and Call it "Release Net.bat" and drag a shortcut to the Desktop, or any place of your choice.

One contains the line: ipconfig /renew

Save it and Call it "ReNew Net.bat" and drag a shortcut to the Desktop, or any place of your choice.

Open the properties of the both shortcuts and under the Short Cut Tab choose to Run Minimized (this is Not a must but it makes it neater.

Every time you want to Disconnect Double click on the Release Icon. Connect back by Double clicking on the Renew.

What it does.

It releases the TCP/IP stack and thus No network/Internet

The second file renews the stack.

The advandege over other types of configuration (like blocking with the Firewall)?

Next time when you boot the computer does not matter how youy left it, it comes back up by itself and you do not need to be surprised "Why the hack I do not have Internet"?

You da man. Just what I was looking for. Works perfect. :)

 

xSauronx

Lifer
Jul 14, 2000
19,582
4
81
Originally posted by: compman25
Originally posted by: JackMDS
Make and save two bat files (simple text files saved with the extension .bat)

One contains the line: ipconfig /release

Save it and Call it "Release Net.bat" and drag a shortcut to the Desktop, or any place of your choice.

One contains the line: ipconfig /renew

Save it and Call it "ReNew Net.bat" and drag a shortcut to the Desktop, or any place of your choice.

Open the properties of the both shortcuts and under the Short Cut Tab choose to Run Minimized (this is Not a must but it makes it neater.

Every time you want to Disconnect Double click on the Release Icon. Connect back by Double clicking on the Renew.

What it does.

It releases the TCP/IP stack and thus No network/Internet

The second file renews the stack.

The advandege over other types of configuration (like blocking with the Firewall)?

Next time when you boot the computer does not matter how youy left it, it comes back up by itself and you do not need to be surprised "Why the hack I do not have Internet"?

You sure?

why wouldnt he be? one releases the DHCP acquired IP address, leaving the nic with no addres or a 169.254.x.x by default

the other gets a new DHCP address
 

Nuwave

Member
Jun 30, 2008
118
0
0
What if you use Static IP's? This won't work, IS there a differant type of dos command to disable / enable the nic card?

edit, I'd imagine this is a registry type of thing.
 

JackMDS

Elite Member
Super Moderator
Oct 25, 1999
29,516
407
126
I always use Routers that are capable to do with Static IP within the DHCP, and set the computers to Auto Obtain.

However, I can imagin (I never tried it) that the "netsh int IP set address" command can be used to set the IP to a static 169.254.x.x. type and thus disconnect the computer from the Network.

A second batch can set back the original static IP.



 

RadiclDreamer

Diamond Member
Aug 8, 2004
8,622
40
91
Originally posted by: JackMDS
Make and save two bat files (simple text files saved with the extension .bat)

One contains the line: ipconfig /release

Save it and Call it "Release Net.bat" and drag a shortcut to the Desktop, or any place of your choice.

One contains the line: ipconfig /renew

Save it and Call it "ReNew Net.bat" and drag a shortcut to the Desktop, or any place of your choice.

Open the properties of the both shortcuts and under the Short Cut Tab choose to Run Minimized (this is Not a must but it makes it neater.

Every time you want to Disconnect Double click on the Release Icon. Connect back by Double clicking on the Renew.

What it does.

It releases the TCP/IP stack and thus No network/Internet

The second file renews the stack.

The advandege over other types of configuration (like blocking with the Firewall)?

Next time when you boot the computer does not matter how youy left it, it comes back up by itself and you do not need to be surprised "Why the hack I do not have Internet"?

Just to add to this, once you create the batch file create a shortcut to it, right click properties then assign a shortcut key for easy access
 

compman25

Diamond Member
Jan 12, 2006
3,767
2
81
Originally posted by: xSauronx
Originally posted by: compman25
Originally posted by: JackMDS
Make and save two bat files (simple text files saved with the extension .bat)

One contains the line: ipconfig /release

Save it and Call it "Release Net.bat" and drag a shortcut to the Desktop, or any place of your choice.

One contains the line: ipconfig /renew

Save it and Call it "ReNew Net.bat" and drag a shortcut to the Desktop, or any place of your choice.

Open the properties of the both shortcuts and under the Short Cut Tab choose to Run Minimized (this is Not a must but it makes it neater.

Every time you want to Disconnect Double click on the Release Icon. Connect back by Double clicking on the Renew.

What it does.

It releases the TCP/IP stack and thus No network/Internet

The second file renews the stack.

The advandege over other types of configuration (like blocking with the Firewall)?

Next time when you boot the computer does not matter how youy left it, it comes back up by itself and you do not need to be surprised "Why the hack I do not have Internet"?

You sure?

why wouldnt he be? one releases the DHCP acquired IP address, leaving the nic with no addres or a 169.254.x.x by default

the other gets a new DHCP address

Should have seen it before his edit :D