I try to disable and enable the standart gateway so that you cant use the internet but be still in the local Network.
Asked
Active
Viewed 419 times
1 Answers
0
It is not a good idea to do a disconnecting the Internet by this way. But it is possible:
- Open the CMD window as an administrator.
- View the status before editing:
route print | findstr "0.0.0.0"
- Delete the default route:
route delete 0.0.0.0 mask 0.0.0.0
- Re-view the status after editing:
route print | findstr "0.0.0.0"
The change is valid only until the PC is restarted or the dynamically assigned IP address (DHCP) is restored. Auto-renewal of the address takes place in the middle of the lease time period, it can be 30 minutes, 12 hours, etc. This is one of the reasons why this method of solution is not reliable at all.
It is better to block the PC's access to the Internet on your Internet router.

DigiBat
- 264
- 2
- 4