Tiny portable Windows tool to flip a NIC between a static IP and DHCP. One UAC prompt, one keypress.
Find a file
engelgardt 2634d43bcb chore: switch update-check and release URLs to self-hosted Forgejo
GitHub-репо заморожены; релизы теперь на git.engelgardt23.ru.

Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>
2026-05-19 03:46:56 +03:00
.github v1.2.0: rewrite in Python (mirrors dhcpsrv); clickable update link 2026-05-18 12:51:42 +03:00
assets add app icon (assets/icon.ico) + generator script 2026-05-17 17:54:16 +03:00
src/netswitch chore: switch update-check and release URLs to self-hosted Forgejo 2026-05-19 03:46:56 +03:00
tools add app icon (assets/icon.ico) + generator script 2026-05-17 17:54:16 +03:00
.gitignore v1.2.0: rewrite in Python (mirrors dhcpsrv); clickable update link 2026-05-18 12:51:42 +03:00
CHANGELOG.md v1.2.0: rewrite in Python (mirrors dhcpsrv); clickable update link 2026-05-18 12:51:42 +03:00
CONTRIBUTING.md refactor: move source into src/ 2026-05-16 12:28:10 +03:00
LICENSE Initial public release: netswitch v1.0.0 2026-05-16 11:36:45 +03:00
netswitch-launcher.py v1.2.0: rewrite in Python (mirrors dhcpsrv); clickable update link 2026-05-18 12:51:42 +03:00
pyproject.toml v1.2.0: rewrite in Python (mirrors dhcpsrv); clickable update link 2026-05-18 12:51:42 +03:00
README.md v1.2.0: rewrite in Python (mirrors dhcpsrv); clickable update link 2026-05-18 12:51:42 +03:00
README.ru.md v1.2.0: rewrite in Python (mirrors dhcpsrv); clickable update link 2026-05-18 12:51:42 +03:00
SECURITY.md SECURITY.md: keep only GitHub private advisories, drop SLA 2026-05-16 11:56:05 +03:00

netswitch

Latest release License: MIT

🇺🇸 English | 🇷🇺 Русский

A tiny portable tool to flip a Windows network adapter between a static IP and DHCP with a few keystrokes.

Built for the recurring engineer chore of "give my laptop NIC 10.10.10.1 so I can talk to a server's BMC" and "now put it back on DHCP so I can have internet again."

Made by engelgardt.


Download

Grab the latest release: releases page. The asset is netswitch-portable-vX.Y.Z.zip (~30 KB).

Run

  1. Unzip anywhere.
  2. Double-click netswitch.exe.
  3. Accept the UAC prompt (admin is needed for netsh interface ipv4 set address).
  4. Pick the network adapter from the list.
  5. Choose mode:
    • Static: enter IP (default 10.10.10.1), mask (default 255.255.255.0), gateway (optional).
    • DHCP: just confirms — the NIC reverts to DHCP for both IP and DNS.

What it filters

Only real, wired physical adapters appear in the picker. Wireless, VPN, virtual, Hyper-V, VMware, VirtualBox, TAP/TUN, WireGuard, OpenVPN, Tailscale, ZeroTier, Bluetooth, Loopback, WAN Miniport — all skipped.

Update check

On every launch the tool calls GitHub's /releases/latest (3-second timeout). If a newer version is available, it prints a yellow notice and offers to open the download page in your browser. If you're offline, it stays silent.

Build from source

python -m pip install rich pyinstaller
python -m PyInstaller --onefile --uac-admin --console --name netswitch --icon assets/icon.ico --paths src netswitch-launcher.py

License

MIT — see LICENSE.