Plug‑and‑play wireless LAN party setup for classic C&C Generals Zero Hour and Counter‑Strike v34.
No internet needed.
Start a Wi‑Fi hotspot, configure the network, find the host, sync game data, and jump into the game – all from one simple window.
-
Only the Router / phone hotspot network mode is currently reliable.
The “Laptop hotspot (legacy netsh)” and “Windows Mobile Hotspot” modes may fail due to driver or Windows restrictions.
We strongly recommend you host your LAN using a dedicated router or a phone’s Wi‑Fi hotspot and select the third option in the toolkit. -
For C&C Generals Zero Hour, GameData.ini must be manually prepared.
The toolkit cannot automatically share or synchroniseGameData.inibecause it depends on a special modded file. You need to:- Download a working
GameData.inifrom the internet (find a LAN‑compatible version). - Place it in your Zero Hour installation folder under
Data\INI(e.g.C:\Program Files (x86)\EA Games\Command and Conquer Generals Zero Hour\Data\INI\GameData.ini). - Manually copy this file to the same location on every player’s PC.
The toolkit will not do this for you – you must handle it once before the LAN party. - The
Options.inifile (which contains each player’s IP settings) is created automatically by the toolkit inDocuments\Command and Conquer Generals Zero Hour Data– you do not need to share that file; it stays local to each machine.
- Download a working
- Graphical User Interface – No PowerShell commands required; everything is point‑and‑click.
- Offline‑ready – Works without any internet connection. All modules run locally.
- Two classic games – Optimised for:
- Command & Conquer: Generals – Zero Hour (LAN multiplayer, Options.ini update, manual GameData.ini sync)
- Counter‑Strike v34 / Source build (autoexec.cfg, connect.cfg, desktop launchers)
- Host or Client – Choose your role and the toolkit handles the rest.
- Automatic network setup – Identifies the correct Wi‑Fi adapter, assigns IP settings (static where needed), sets the network profile to Private, and opens all required firewall ports (inbound and outbound, plus network discovery and file sharing).
- Smart hotspot detection – Supports three Wi‑Fi styles, though only the router / phone hotspot mode is fully stable.
- Host discovery – Automatically scan the subnet to find the game host, or pick from a list.
- Full cleanup – Restores original IP settings, removes firewall rules, stops hotspot, and deletes the temporary share.
- Session persistence – Your last used settings are saved for the next LAN party.
- Automatic admin elevation – The script checks for administrator rights and re‑launches itself elevated if necessary.
- Windows 10 or Windows 11 (64‑bit recommended) with PowerShell 5.1 or higher.
- Administrator rights – the script will request elevation automatically.
- A Wi‑Fi adapter that supports the router / phone hotspot mode (other modes are unreliable).
- Both host and clients must be on the same local network.
- The games must be installed on the same PC (the toolkit will find them automatically or you can browse).
- Download the latest release package (
LANPartyToolkit.zip). - Extract all files to a folder of your choice (e.g.
D:\LANParty).
⚠️ Do not run the script from a temporary or network location – always from a local folder. - Right‑click
Main.ps1and select Run with PowerShell.
If you get security warnings, you may need to unblock the files first:
Unblock-File -Path .\Main.ps1or set the execution policy temporarily:
Set-ExecutionPolicy -Scope Process -ExecutionPolicy Bypass
Before running the toolkit for Zero Hour:
- Get the modded
GameData.ini– search for a “Zero Hour LAN GameData.ini” or use one from a trusted source. - Place it in each player’s
Command and Conquer Generals Zero Hour\Data\INIfolder (create theINIsubfolder if missing). - Make sure every PC has the same file – the toolkit will not automate this step.
Once that is done, the toolkit will handle updating each PC’s Options.ini with the correct IP address.
Run Main.ps1 as Administrator (or just double‑click – it will elevate itself). The GUI will open.

In the left panel, set:
- This PC is the:
HostorClient - Network style: Always select “Router / phone hotspot” (the other two modes are unstable).
The toolkit will use your existing Wi‑Fi connection (the SSID you are already connected to).
- Wi‑Fi name (SSID): The toolkit usually detects this automatically. Verify it matches your router or phone hotspot name.
- Players including host: Total number of players (2‑5).
- Client slot – ignored for this mode; leave as default.
In the right panel, under Game setup:
- Click Auto Find to let the toolkit search for installed games on all drives.
- Or Browse to pick the folder manually.
The toolkit validates that the folder contains the expected launcher files (e.g. run_css.exe, generals.exe).
Click Check This PC to run a pre‑flight check. The banner will show:
- ✅ Ready to continue – all good.
⚠️ Usable with warnings – minor issues (e.g. no game path set yet).- 🚫 Blocked – critical problems that must be fixed first (adapter missing, etc.).
The Network summary and Diagnostics panels will fill with live information about your adapter, IP, gateway, and any reachable devices.
Click Fix Network Automatically. This will:
- Ensure you are connected to the correct Wi‑Fi network.
- Identify the correct network adapter.
- Back up the current network configuration.
- Set the network profile to Private (enables file sharing).
- Open inbound and outbound firewall rules for CS:GO, Zero Hour, and SMB, as well as enable Network Discovery and File and Printer Sharing rules.
- Remember the host IP for the current SSID.
Now your network is ready. The Host IP box will be filled in, and the diagnostics will show other PCs.
If you are a client and the host IP wasn’t auto‑detected, click Find Host Automatically.
The toolkit scans the subnet and lists all live hosts. Pick the correct one, and it will be saved for future sessions on the same SSID.
-
Prepare Zero Hour
- Ensure the manual GameData.ini copy has been done (see Pre‑LAN Checklist above).
- The toolkit updates your local
Options.iniwith your IP address. - It also clears
_tmpChunk.datandMapCacheto avoid glitches. - No automatic sharing – remember, you already copied the
GameData.inimanually to all PCs.
-
Prepare Counter‑Strike
- Creates an
autoexec.cfgthat forces LAN mode and setshostport 27015. - Creates a
connect.cfgwithconnect <host IP>. - Places two
.batfiles on your desktop:CSGO_LAN_Join.batandCSGO_LAN_Host.bat.
- Creates an
Use the desktop batch files to start the games, or start them normally – your network settings are already in place.
| Mode | Status | Notes |
|---|---|---|
| Router / phone hotspot | ✅ Stable | Join an existing Wi‑Fi network created by your router or phone. All PCs connect to the same SSID. DHCP is used for IP assignment. |
| Laptop hotspot (legacy netsh) | ❌ Unreliable | May fail on modern drivers or Windows updates. Use only as a fallback if you know your hardware supports it. |
| Windows Mobile Hotspot | ❌ Unreliable | Often fails due to Windows security restrictions. The toolkit may prompt you to manually enable the hotspot, but connectivity issues are common. |
Recommendation: Always set up a hotspot on your phone or use a dedicated Wi‑Fi router and select “Router / phone hotspot” in the toolkit.
The toolkit is built from separate PowerShell modules, each handling one aspect of the LAN party:
| Module | Purpose |
|---|---|
Main.ps1 |
Orchestrator, loads modules, starts GUI, handles cleanup on exit. |
Ui.ps1 |
The entire GUI, including all controls, diagnostics grid, and safe threading. |
AdminCheck.ps1 |
Ensures the script runs with administrator privileges (auto‑elevation). |
StateStore.ps1 |
Saves/restores session state in %ProgramData%\LANPartyToolkit, backs up adapter settings. |
AdapterDiscovery.ps1 |
Finds Wi‑Fi adapters, gets IP info, pings, probes, and hosts discovery. |
Preflight.ps1 |
Pre‑flight checks for wireless driver support, adapter availability, and potential conflicts. |
Hotspot.ps1 |
Starts/connects the legacy hosted network and manual hotspot helpers. |
IPConfig.ps1 |
Assigns static IP addresses safely, removes conflicting addresses. |
NetworkProfile.ps1 |
Sets the network to Private for LAN sharing. |
FirewallRules.ps1 |
Adds inbound and outbound allow rules for game ports, and enables Network Discovery / File and Printer Sharing. |
NetworkScanner.ps1 |
Console‑based network scan (used by older modules, superseded by GUI diagnostics). |
GameDiscovery.ps1 |
Searches all fixed drives for Steam, Epic, EA, GOG, and manual installations of both games. |
CSGO.ps1 |
Modifies CS:GO configs, creates desktop launchers. |
CnCZH.ps1 |
Updates Options.ini, but does not automatically share GameData.ini (see manual setup). |
Cleanup.ps1 |
Reverses all changes: stops hotspot, removes firewall rules, reverts IP settings, deletes temporary share. |
All state and logs are stored in %ProgramData%\LANPartyToolkit\. Transcript logs of each session are saved automatically for troubleshooting.
- Make sure your Wi‑Fi adapter is enabled and not in airplane mode.
- On Windows 11, a background scan may be required – click the Wi‑Fi icon in the taskbar once, then try again.
- You likely selected an unstable mode. Switch to Router / phone hotspot mode and try again.
- Verify both PCs are connected to the same SSID.
- On the host, make sure the network is set to Private. The toolkit does this automatically.
- Try pinging the host IP manually from the client (
ping 192.168.1.x).
- Double‑check that the same
GameData.iniis inData\INIon every PC (see Pre‑LAN Checklist). - Ensure both PCs are on the same subnet and can ping each other.
- Check that Windows Firewall or third‑party firewall is not blocking the game (ports 8088 TCP, 16000 UDP, 1234 UDP).
- Launch the game via the
.batfile, or use-console +exec autoexec.cfg +exec connect.cfg. - Make sure the host has started a listen server (
map <mapname>in console) before clients connect.
When you close the toolkit, a popup will ask if you want to restore your original network settings.
You can also press Force Cleanup at any time to roll back all changes (IP settings, firewall rules, temporary share, and hotspot).
This toolkit is provided as‑is, without any warranty. Use it at your own risk.
Feel free to share it with your LAN party friends.
Happy LAN gaming! 🎮