On this page
Call of Duty 4: Modern Warfare and Call of Duty 2 still have active communities, and both run a light dedicated server. There is one catch: the maps, models and sounds belong to Activision and nobody may give them away. That is why Torchlite offers these two games as bring your own game files. We install the server program, and you upload the game data from a copy of the game that you own. If you came here from the message in your server's console, the upload list you need is in the CoD4 section or the CoD2 section.
What Torchlite installs and what you add
| Call of Duty 4 (CoD4x) | Call of Duty 2 | |
| Game version you need | 1.7 (Steam copies are 1.7) | 1.3 (Steam copies are 1.3) |
| Server program | CoD4x, installed by Torchlite | cod2_lnxded 1.3 for Linux, uploaded by you |
| Game data | uploaded by you | uploaded by you |
| Plans | Lite, Turbo | Lite, Turbo |
| Address in the panel | cod4.torchlite.host:<port> | cod2.torchlite.host:<port> |
For CoD4, Torchlite uses CoD4x, the open source server that the community maintains for Call of Duty 4. Players join with a 1.7 copy of the game. Alongside the server program the installer adds three small CoD4x files: main/xbase_00.iwd, main/jcod4x_00.iwd and zone/cod4x_patchv2.ff. Leave them where they are. Reinstall Server puts them back if they go missing and keeps everything you uploaded.
For CoD2 we cannot install the server program for you either. The Linux server for version 1.3 was a separate download from Activision in 2006, and we found no licence that lets us hand it out. You upload cod2_lnxded from the official 1.3 Linux server package, together with the game data.
Always copy the address from your own panel, with the port after the colon.
Create the server
- On torchlite.host, press Create your server, sign in, choose Lite and then Call of Duty 4 or Call of Duty 2. The first-server guide explains every screen.
- Wait for the install to finish. It is quick, because it downloads no game data.
- Do not worry when the first start ends straight away. Until the files are there, the console prints a message in English and Romanian with the list of missing files and a link to this guide, and the server stops.
Lite is enough for both games. These are old engines: old Linux server notes for CoD4 put a loaded map at around 150 to 175 MB of RAM, well under the 1.5 GB that Lite gives. Turbo only adds room for heavy mods. The game files themselves fit in Lite's 15 GB of disk.

Upload with SFTP
The panel's file manager has a size limit per file, and single .iwd files are bigger than that, so use SFTP. It also resumes if your connection drops.
- In the panel, open Settings. The SFTP Details box shows the server address (port 2022) and your username, which ends with a dot and the server's short ID.
- In FileZilla or WinSCP, connect with that host, port 2022, the full username and your panel password. Accounts made with Google or Discord can set an SFTP password in the panel. The SFTP guide has every step with pictures.
- Stop the server, upload the files listed below into the folders shown, and start it again.
The CoD4 upload list
Take the files from the folder where Call of Duty 4 is installed on your computer, from a 1.7 copy:
- Every
.iwdfile from the game'smainfolder intomain/on the server:iw_00.iwdup toiw_13.iwd, plus thelocalized_*.iwdfiles. - The multiplayer
.fffiles from the game'szone/englishfolder intozone/english/on the server. The server needscode_post_gfx_mp.ff,localized_code_post_gfx_mp.ff,common_mp.ff,localized_common_mp.ff, and everymp_*.ffwith itsmp_*_load.ff. You can copy the whole folder, but the single-player level files are not needed and only add upload time.
Before each start the server checks for iw_00.iwd to iw_13.iwd, the three core zone files, at least one mp_ map, and its own CoD4x files. If any of them is missing, it prints what is missing instead of starting. When everything is in place, the folder looks like this:
cod4x18_dedrun (Torchlite)
main/server.cfg (Torchlite, yours to edit)
main/iw_00.iwd ... iw_13.iwd, localized_*.iwd
main/xbase_00.iwd, main/jcod4x_00.iwd (Torchlite)
zone/cod4x_patchv2.ff (Torchlite)
zone/english/*.ff
mods/ usermaps/ plugins/The CoD2 upload list
From a 1.3 copy of Call of Duty 2 and the 1.3 Linux server package:
cod2_lnxdedinto the top folder of the server, next toREADME.txt. It must be the 32-bit Linux server program for 1.3. The server checks the start of the file and refuses anything else, such as the Windows server or a renamed file.iw_00.iwdup toiw_15.iwdfrom the game'smainfolder intomain/.- The
localized_<language>_iw00.iwdtoiw11.iwdfiles for your game's language intomain/.
The cod2_lnxded file is a program, so take it only from the official package. It runs in the same locked-down container as any other server.
Join the server
Players need their own copy of the game, at the same version as the server. In the game, open the console with the key under Esc and type the address from the panel:
/connect cod4.torchlite.host:24100The port is an example; use yours. For CoD2 the command is the same with your cod2 address. On a CoD4x server, players on Windows are offered the CoD4x client update the first time they join. That is how CoD4x works, and it is up to each player to accept it.
Settings and server.cfg
The Startup page has the values you will change most: the server name, the number of slots (2 to 64; 18 by default on CoD4, 20 on CoD2), the RCON password, the mod folder and, on CoD4, the CoD4x master token. They are applied after server.cfg, so they win over the same lines in the file. Restart after a change.
Everything else is in main/server.cfg. Torchlite writes a starting file on the first install and never overwrites it after that. On CoD4 it starts Team Deathmatch (g_gametype war) on a rotation of the stock maps; on CoD2 it starts Team Deathmatch on the stock and 1.3 maps. The map list and game types live in sv_mapRotation. With a mod, CoD4x reads mods/<mod>/server.cfg instead.
RCON and the panel console
The panel's Console sends commands straight to the server, no password needed. On CoD4 we tried map_rotate, map mp_backlot, kick and say hello; once a map is loaded they act on it.
To manage the server from inside the game, set an RCON password on Startup (8 to 64 letters and digits; empty means RCON is off), restart, and in the game console type:
/rcon login yourpassword
/rcon map mp_crashAnyone with the RCON password controls the server, so choose a long one and do not share it.
The CoD4x master list
Without a token, a CoD4 server runs normally and players join by address, but it does not appear on the CoD4x master list. To get listed:
- Open the CoD4x token page and sign in with Steam.
- Copy the token and paste it into CoD4x Master Token on Startup.
- Restart the server.
Mods, custom maps and plugins
On CoD4, a mod goes into mods/<name>/ with its mod.ff, its extra .iwd files and its own server.cfg; then set the mod folder on Startup to mods/<name>. Custom maps go into usermaps/<map>/ as <map>.ff, plus <map>_load.ff. CoD4x plugins (.so files) go into plugins/ and are loaded with a loadplugin <name> line in server.cfg.
On CoD2, a mod is a folder next to main/; set the mod folder on Startup to its name.
Keeping it online
Every start and every renew shows a short sponsor break first: two cards from our sponsor TorchByte on Lite, three on Turbo. The renewal timer runs for 50 minutes on Lite and 40 on Turbo, and the Renew button opens in its last minutes. If nobody renews, the server stops and keeps every file, uploads included. A server nobody uses for 5 days is deleted with its files, after a warning email one day before, so keep your own copy of anything you changed. The renewal guide has every rule.
What we tested and what we did not
We built both servers on our test machine on 26 November 2026. The CoD4x install downloaded the server and its three support files and checked each one against a known checksum. Without game data, the server started, opened its port, ran server.cfg and read the map rotation, then stopped at the missing zone files, as expected. The missing-files message, the panel values, the console commands and a clean stop all worked. The CoD2 install worked and the checks refused a wrong cod2_lnxded.
We could not play a match on either game: we do not have the game files, and we must not download them. For CoD2 we have not run the real server program at all. If something here does not match what you see, tell us on Discord or at contact@torchlite.host and we will fix the guide.
Common problems
The console lists missing files and the server stops
The upload is incomplete or in the wrong folder. Compare with the list for CoD4 or CoD2: the .iwd files go directly into main/, not into main/main/, and CoD4's .ff files go into zone/english/.
"Could not find zone ... .ff"
A CoD4 zone file is missing or sits in the wrong folder. Upload the multiplayer .ff files from the game's zone/english folder.
"sv_mapRotation is empty"
main/server.cfg was deleted or has no rotation. Add an sv_mapRotation line, or delete the file and use Reinstall Server to get the starting one back.
"cod2_lnxded is not the 32-bit Linux server program"
You uploaded another file under that name. Use the 1.3 Linux dedicated server from the official package.
"fs_homepath is write protected" in the log
That line is normal on Torchlite and does no harm, and so is a short hitch warning on the first frame.
Players cannot join
Check that they use the same game version as the server (1.7 for CoD4, 1.3 for CoD2), that they typed the port, and that the renewal timer has not run out.
About the author
Torchlite team
The people who run Torchlite
We run the Torchlite panel and servers. Each guide says when it was last updated, and where it has a "What we tested" section, what we tested and when. If something is wrong, tell us on Discord and we will fix it.



