- Download
windows_optimize.batandwindows_advanced_optimize.bat - Right-click → "Run as Administrator"
- Follow on-screen instructions
- Restart computer
# Install Python from python.org (3.7 or higher)
# Open Command Prompt as Administrator
pip install psutil
python network_optimizer.py# Install MinGW or Visual Studio with C++ tools
# Using MinGW:
g++ -o network_monitor.exe network_monitor.cpp -lws2_32 -liphlpapi -std=c++11
# Using Visual Studio Developer Command Prompt:
cl network_monitor.cpp /Fe:network_monitor.exe ws2_32.lib iphlpapi.lib
# Run:
network_monitor.exechmod +x linux_optimize.sh
sudo ./linux_optimize.sh# Install Python and pip (usually pre-installed)
pip install psutil
# Or use system package manager:
sudo apt install python3-psutil # Debian/Ubuntu
sudo dnf install python3-psutil # Fedora
sudo pacman -S python-psutil # Arch
# Run:
sudo python3 network_optimizer.py# Install build tools
sudo apt install build-essential # Debian/Ubuntu
sudo dnf install gcc-c++ # Fedora
sudo pacman -S base-devel # Arch
# Compile:
g++ -o network_monitor network_monitor.cpp -std=c++11 -pthread
# Run:
./network_monitor# Python usually comes pre-installed
pip3 install psutil
# Run:
sudo python3 network_optimizer.py# Install Xcode Command Line Tools
xcode-select --install
# Compile:
g++ -o network_monitor network_monitor.cpp -std=c++11
# Run:
./network_monitor# Basic compilation
g++ network_monitor.cpp -o network_monitor -std=c++11
# With optimizations
g++ network_monitor.cpp -o network_monitor -std=c++11 -O3
# With threading support (Linux)
g++ network_monitor.cpp -o network_monitor -std=c++11 -pthread
# Windows with MinGW
g++ network_monitor.cpp -o network_monitor.exe -std=c++11 -lws2_32 -liphlpapi# Using Developer Command Prompt
cl /EHsc network_monitor.cpp ws2_32.lib iphlpapi.lib
# With optimizations
cl /O2 /EHsc network_monitor.cpp ws2_32.lib iphlpapi.libclang++ network_monitor.cpp -o network_monitor -std=c++11 -pthread# Python 3
pip3 install psutil
# Python 2 (not recommended)
pip install psutil
# System package manager (Linux)
sudo apt install python3-psutil# Linux/Mac
chmod +x filename
sudo ./filename
# Windows
# Right-click → Run as Administrator- Install MinGW with MSYS2: https://www.msys2.org/
- Or use Visual Studio with C++ Desktop Development workload
# Add pthread flag
g++ network_monitor.cpp -o network_monitor -std=c++11 -pthread# Debian/Ubuntu
sudo apt update
sudo apt install build-essential
# Fedora
sudo dnf install gcc-c++
# macOS
xcode-select --install-
Run with Admin/Root Privileges
- Required for system-level optimizations
- Enables DNS configuration changes
- Allows TCP/IP stack modifications
-
Close Background Applications
- Stop automatic updates
- Close cloud sync services
- Disable background downloads
-
Use Wired Connection
- Ethernet > WiFi for gaming
- WiFi adds 1-10ms latency
- More stable connection
-
Restart After Optimization
- Required for registry changes (Windows)
- Ensures kernel parameters apply (Linux)
- Clears network stack state
-
Run During Off-Peak Hours
- Less network congestion
- Better DNS response times
- More stable routing
After running optimization, test with:
# Python script
python network_optimizer.py --stats
# Linux shell
./linux_optimize.sh --stats
# Manual ping test
ping -n 50 8.8.8.8 # Windows
ping -c 50 8.8.8.8 # Linux/Mac- ✅ Lower average latency
- ✅ More consistent ping times (less jitter)
- ✅ Fewer packet losses
- ✅ Faster DNS resolution
- ✅ Better connection stability
Run tests BEFORE and AFTER optimization:
- Before:
ping -c 100 google.com - Run optimization
- Restart computer
- After:
ping -c 100 google.com - Compare average latency and packet loss
- Test current network performance (baseline)
- Run optimization with admin privileges
- Restart computer
- Test again and compare results
- Tweak settings if needed
- Run DNS optimization weekly
- Monitor bandwidth monthly
- Re-optimize after major system updates
- Run quick optimization:
python network_optimizer.py --optimize - Check for bandwidth consumers: Option 7 in menu
- Close unnecessary applications
- Verify latency:
ping game-server.com
Edit the DNS server list in the scripts to add your preferred servers.
- Find game server IPs
- Test latency to those specific servers
- Optimize routing for those IPs
The Python script can be imported as a module:
from network_optimizer import NetworkOptimizer
optimizer = NetworkOptimizer()
optimizer.run_full_optimization()| Feature | Windows | Linux | macOS |
|---|---|---|---|
| DNS Optimization | ✅ | ✅ | ✅ |
| TCP/IP Tuning | ✅ | ✅ | |
| Registry Tweaks | ✅ | N/A | N/A |
| Sysctl Optimization | N/A | ✅ | ✅ |
| Bandwidth Monitor | ✅ | ✅ | ✅ |
| Process Monitor | ✅ | ✅ | ✅ |
| Batch Scripts | ✅ | N/A | N/A |
| Shell Scripts | N/A | ✅ | ✅ |
- Verify admin/root privileges
- Check error messages carefully
- Review README.md for requirements
- Test individual components separately
- Ensure all dependencies are installed
- Check your antivirus isn't blocking scripts
- Verify Python/C++ version compatibility
- Test with simpler batch/shell scripts first
- Make sure Windows Firewall allows changes
After successful setup:
- Bookmark your baseline network performance
- Schedule regular optimization (weekly/monthly)
- Share with friends who game
- Customize for your specific needs
- Contribute improvements back to the project
Happy gaming! 🎮