DEDICATED
You can't run dedicated and client in the same folder.

Modern Warfare 2

1. Copy your whole MW2 folder to another location.
2. Download the dedicated server files: V2IW4 Server Files.
3. Extract all files to their relative location in your new MW2 directory.
4. Edit the server.cfg file in your main folder as you wish.
5. Forward the server port (default is 28961, you can change it in startserver.bat) in your router.

Start
1. Right click tor.exe located in the bin directory of your MW2 folder and select Run as admin.
2. Wait until the line [notice] Bootstrapped 100%: Done shows up.
3. Run startserver.bat.

You must forward the port 28961 (TCP/UDP) on your router and Firewall.

Black Ops

1. Create a copy from your game to another directory.
2. Download the client/dedicated here.
3. Extract the files inside your dedicated server directory.
4. Go into the folder "main", open the server.cfg with a text editor and edit the file as you wish.
5. Forward the server port (default is 3074, you can change it in start-server.bat) in your router.
6. Run the start-server.bat and check your server.

You must forward the port 3074 (TCP/UDP) on your router and Firewall.

Frequently Asked Questions
1. I can't see my server in the list but my friends can join?
A. Some routers can have this issue, join using your Local IPV4, connect ipv4:port in the console.

2. My server is showing the following message: We are not able to reach this server, possibily others from the internet will have the same problem. Make sure you portforwarded correctly.
A. Check if you correctly port forwarded here, if you are running dedicated and server in the same computer please make sure that the client is not using the default port, open the dedicated before the client or change the dedicated port.

3. How can I run mods on my server?
A. Add the command +set fs_game mods/MODFOLDER on your startserver.bat.

4. How to port forward?
A. There are a lot of routers and the tutorial is almost impossible, contact your ISP or search on Google by router model and port, example "thomsom tg 580 port forward", we don't responsabilize for damages.