├── LICENSE ├── readme.md ├── undo.bat ├── reset_silent.bat └── reset.bat /LICENSE: -------------------------------------------------------------------------------- 1 | Copyright (C) 2017 dannyvoid 2 | 3 | Everyone is permitted to copy and distribute verbatim or modified 4 | copies of this license document, and changing it is allowed as long 5 | as the name is changed. 6 | 7 | DO WHAT THE FUCK YOU WANT TO PUBLIC LICENSE 8 | TERMS AND CONDITIONS FOR COPYING, DISTRIBUTION AND MODIFICATION 9 | 10 | 0. You just DO WHAT THE FUCK YOU WANT TO. 11 | -------------------------------------------------------------------------------- /readme.md: -------------------------------------------------------------------------------- 1 | This resets your windows Network Stack entirely, without needing a reboot. 2 | 3 | Run 'reset.bat' every time your download stops or hits a very slow speed. 4 | 5 | Run 'reset_silent.bat' if you don't want to be bothered with a Y/N option or are automating. 6 | 7 | You *don't* have to reboot your computer, router or modem. 8 | Just run the batch, and voila. 9 | 10 | **If your internet stops working after running this, please run 'undo.bat'.** 11 | -------------------------------------------------------------------------------- /undo.bat: -------------------------------------------------------------------------------- 1 | @echo off 2 | 3 | net session >nul 4 | if %errorlevel% neq 0 goto elevate >nul 5 | goto :start 6 | 7 | :elevate 8 | cd /d %~dp0 9 | mshta "javascript: var shell = new ActiveXObject('shell.application'); shell.ShellExecute('%~nx0', '', '', 'runas', 1);close();" >nul 10 | exit 11 | 12 | :start 13 | for /F "skip=3 tokens=1,2,3* delims= " %%G in ('netsh interface show interface') DO ( 14 | IF "%%H"=="Connected" netsh interface ip set address "%%J" dhcp 15 | ) >nul 16 | 17 | for /F "skip=3 tokens=1,2,3* delims= " %%G in ('netsh interface show interface') DO ( 18 | IF "%%H"=="Connected" netsh interface ip set dns "%%J" dhcp 19 | ) >nul 20 | -------------------------------------------------------------------------------- /reset_silent.bat: -------------------------------------------------------------------------------- 1 | @echo off 2 | 3 | net session >nul 4 | if %errorlevel% neq 0 goto elevate >nul 5 | goto :start 6 | 7 | :elevate 8 | cd /d %~dp0 9 | mshta "javascript: var shell = new ActiveXObject('shell.application'); shell.ShellExecute('%~nx0', '', '', 'runas', 1);close();" >nul 10 | exit 11 | 12 | :start 13 | ipconfig /release >nul 14 | ipconfig /renew >nul 15 | netsh int ip delete arpcache >nul 16 | netsh int ip reset >nul 17 | netsh winsock reset >nul 18 | netsh winsock reset proxy >nul 19 | 20 | for /F "skip=3 tokens=1,2,3* delims= " %%G in ('netsh interface show interface') DO ( 21 | IF "%%H"=="Connected" netsh interface set interface "%%J" disabled 22 | ) >nul 23 | 24 | for /F "skip=3 tokens=1,2,3* delims= " %%G in ('netsh interface show interface') DO ( 25 | IF "%%H"=="Disconnected" netsh interface set interface "%%J" enabled 26 | ) >nul 27 | -------------------------------------------------------------------------------- /reset.bat: -------------------------------------------------------------------------------- 1 | @echo off 2 | 3 | net session >nul 4 | if %errorlevel% neq 0 goto elevate >nul 5 | goto :start 6 | 7 | :elevate 8 | cd /d %~dp0 9 | mshta "javascript: var shell = new ActiveXObject('shell.application'); shell.ShellExecute('%~nx0', '', '', 'runas', 1);close();" >nul 10 | exit 11 | 12 | :start 13 | echo ============================== 14 | echo === FNSRWR v1 by DannyVoid === 15 | echo ============================== 16 | echo. 17 | 18 | :choice 19 | echo Do you want to continue? 20 | echo This will temporarily disable internet access! 21 | set /P c=[Y/N] 22 | if /I "%c%" EQU "Y" goto :continue 23 | if /I "%c%" EQU "N" goto :stop 24 | 25 | goto :choice 26 | 27 | :continue 28 | echo. 29 | echo Releasing and Renewing... 30 | ipconfig /release >nul 31 | ipconfig /renew >nul 32 | 33 | echo Resetting Arp Cache... 34 | netsh int ip delete arpcache >nul 35 | 36 | echo Resetting Local IP... 37 | netsh int ip reset >nul 38 | 39 | echo Resetting Winsock... 40 | netsh winsock reset >nul 41 | netsh winsock reset proxy >nul 42 | 43 | echo Resetting Network Adapter... 44 | for /F "skip=3 tokens=1,2,3* delims= " %%G in ('netsh interface show interface') DO ( 45 | IF "%%H"=="Connected" netsh interface set interface "%%J" disabled 46 | ) >nul 47 | 48 | for /F "skip=3 tokens=1,2,3* delims= " %%G in ('netsh interface show interface') DO ( 49 | IF "%%H"=="Disconnected" netsh interface set interface "%%J" enabled 50 | ) >nul 51 | goto :done 52 | 53 | :done 54 | echo. 55 | echo Complete! Your connection should continue as normal. 56 | pause 57 | goto :stop 58 | 59 | :stop 60 | exit 61 | --------------------------------------------------------------------------------