Cossacks: Back to War

Cossacks: Back to War

88 ratings
Multiplayer for Cossacks: Back to War + Fix for slow multiplayer
By AxelhacK and 1 collaborators
In this guide I will teach you how to set up a working multiplayer for Cossacks: Back to War.
   
Award
Favorite
Favorited
Unfavorite
Firewall
First step is turning off Windows Firewall.
Go to Start -> Control Panel -> System and Security -> Windows Firewall.

This is how it looks like.

Click "Turn Windows Firewall on or off" on the left side and disable it by clicking on the radio buttons for private and public networks.

Then click ok.
Installing game server
  1. Download the file http://cossacks-server.net/Internet.zip.
  2. Go to your "Cossacks: Back to War" folder.
    (it is on "C:\Program Files\Steam\steamapps\common\cossacks back to war\bin\" by default)
  3. Replace the "Internet" folder with the extracted "Internet" folder from the zip file.
Test connection
From this part you already should be able to join the server and the lobbies.

  1. Open Cossacks
  2. Go to Multiplayer
  3. Deathmatch
  4. GSC-Game.Net Internet Game
  5. Enter the username you want to use
  6. Press "Login"
If you are connected, you will see people in the room on the right side.

If you were not able to connect, try repeating first 2 chapters or contacting me.
I will try to help you solve the issue.


You may try creating a lobby, but 80% of the time it will not work, no one will be able to join you.
Port forwarding
If you want people to join your lobby, you will need to port forward.

First you need to find out your router's IP address.
Open command prompt.
To open command prompt, press win+r

and type in a newly opened cmd window

and click OK.

Inside the command prompt, type ipconfig and press enter.
It should look like something like this.

Note the IP you find under the Ethernet adapter -> Default Gateway.
It's mostly something like 192.168.0.1 or 192.168.1.1.
This is your router's IP address.

Go to your favourite browser and type in the IP of your router.
A log-in page should come out, or a request to log in.
If you haven't set up your router manually, you should have the default login name and password.
You should google it up or use this[www.routerpasswords.com] site to find the default username and password.

After logging in, you have to find the port forwarding section.
On my Asus router it's under Advanced Settings -> WAN -> Port Forwarding.
First you have to make sure you enable port forwarding.
Then you have to port forward port range 2300-2400 (default cossacks ports), 34000-34010 (cossacks server is running on 34001) and 6667. You may need it if you really want to play over hamachi (which i don't recommend).

Port forwarding looks like this for me


You should port forward both ports: TCP and UDP.
Most routers don't require a local IP to port forward, but if this is your case, your local IP address is the ipv4 in ipconfig.
After adding ports, click save and reboot your router.

You also can find more help on this[portforward.com] site; but watch out, it will ask you to "Portforward Network Utilities". Just check the [x] off at the upper-right corner.
Setting up DMZ
Normally you don't need DMZ
BUT
if portforwarding didn't help you, then it's the time to set up a demilitarized zone.
First thing you should know is that not every router has dmz.
Second thing you should know is your local IP address.

In my Asus router I can find DMZ under Advanced Settings -> WAN -> DMZ.
Under "IP Address of Exposed Station" you type in your local IP address and press apply.
It should look like something like this.


Your local IP address should be set to static if you often plug in and out the lan cable.
IF NOT, YOU ARE GOOD TO GO.
If so, then you should go to your LAN settings and enable DHCP server + manual assignment.
To do so, you need the MAC address of your PC.
To find your MAC address, go to command prompt and type in ipfconfig /all and the Physical Address of your Ethernet Adapter will be shown.

MAC addresses looks like this: 00-15-E9-2B-99-3C.

So, back to making our local address static.
In my router it's under Advanced Settings -> LAN -> DHCP Server.
You should enable DHCP server and manual assignment.
Then type in your MAC address and a local IP of your choice.
But beware, if your router's address looks like 192.168.1.1, then your local IP should look like 192.168.1.x. (x for any number from 0 to 255, i'd recommend 55 to make sure no other device connected to your router has the same IP address)
It should look like this:

and press Apply

After pressing apply, you are done and good to go! :)
Fix for slow multiplayer
To fix the slow multiplayer, host and client have to download this[mega.nz] file, extract it and replace the csbtw.exe, csemu.dll and dmcr.exe files inside the game folder. Please note, this fix is needed only for the Steam version, GoG version runs fine without.
This fix was found by MaQ, credits go to him.
Thank you
Thank you for reading this guide. I hope I could help you.
If you have any questions, requests or need help, feel free to write into comments or on my profile page here.
86 Comments
Hostmare Mar 30 @ 6:50am 
Very many thanks! This guide was so helpful. You are amazing.
AxelhacK  [author] Jan 2 @ 2:56am 
because you are confusing port forwarding with port mapping
you still can try to open ports by setting external and internal port to the same value. for example
external: 34001, internal: 34001
Elshitstain Jan 1 @ 4:04pm 
hello, on my router it says ''External Port'' and ''internal port'' im abit confused to which ports to use you wrote in the guide.
Cicker Dec 18, 2023 @ 7:26am 
f*ck
thanks for answering again, cant figure it out who is the mastermind who added that 10s
quite annoying
again thanks for keeping this
AxelhacK  [author] Dec 17, 2023 @ 3:35pm 
sadly configuring that kind of stuff is not possible, unless you host the gsc server yourself
even then it would require you to recompile the server yourself and i am too lazy to write a guide about it, i am really sorry
basically what you need is https://github.com/Avatarchik/CossacksGameServer
the thingy you want to fix is the 5 sec timeout in target/SimpleCossacksServer/t/001_SimpleCossacksServer.t
if you need help setting up docker or anything, there are enough guides online. The image autocompiles the Server for you and exposes 34001 automatically. (you obv. still need to port forward / set up dmz). If you really consider hosting it yourself, i'd recommend you some ionos server for 1 eur / month. you should try it out locally before tho, otherwise it'll be a disaster :P
Cicker Dec 17, 2023 @ 11:54am 
Thx for answering :csgo_banana:
Cicker Dec 17, 2023 @ 11:53am 
I fixed yesterday by my own, not working until DMZ was activated.
Btw do you know how to configure server?
I mean, if I go afk for 10s automatically I lose the game and have to leave the game...
AxelhacK  [author] Dec 16, 2023 @ 10:22am 
Check the sections "installing game server" and "test connection"
Cicker Dec 16, 2023 @ 4:30am 
tutorial unclear, after forwarding ports, how do i host and how client its supposed to join?
RockDad Aug 29, 2023 @ 3:05pm 
Quick question. Why open a port for both TCP and UDP?