Setting up a NS2 Dedicated Server on Windows Server, version 1709 (server core)

FuhrerDarqueSydeFuhrerDarqueSyde Join Date: 2004-10-04 Member: 32076Members, Constellation
edited October 2017 in Server Discussion
With the release of 1709 Fall Creators Update, Windows Server released it's first iteration of Windows Server with no option to install a GUI during install.

Windows Server, version 1709 will drop you into a command-line shell the same as if you'd install Windows Server 2012-2016 as a Server Core install. As a result, getting NS2 dedicated server installed can be a little trickier due to the lack of easy tools to work with Windows Server in the command line.

As a result, I have compiled the steps I took to get the server running for me.

One pre-requisite you'll need to do is zip the following files from a Windows installation (preferably Windows 10 version 1709 since it matches the server version):



I acquired the versions in both System32 AND SysWOW64 as I was not sure if both were needed or not. I zipped them up and transferred them over Remote Desktop (shared drives) to the C:\Steam\ folder as where I extracted them into the C:\Windows\ folder via powershell below. You'll need to make the C:\Steam\ folder for the process below.

You can enable Remote Desktop by using the 'sconfig' command-line tool.

Below is the list of commands and tools I used after I has the file in place. The user will be in the C:\Users\Administrator\ folder by default upon logging in.
cd ..
cd ..
cd Steam
wget -UseBasicParsing -OutFile
[System.IO.Compression.ZipFile]::ExtractToDirectory(".\", ".")
[System.IO.Compression.ZipFile]::ExtractToDirectory(".\", "C:\Windows\")
login <username> <password>
force_install_dir C:\Steam\ns2\
app_update 4940
ns2\server.exe -name "Server Name Here" -port 27015 -webadmin -webdomain "" -webuser myUsername -webpassword myPassword -webport 8080 -map ns2_tram -limit 24

By default, the server logs and config files will be stored in C:\Users\Administrator\AppData\Roaming\Natural Selection 2\.

A side note, Windows Firewall is enabled by default. As a result, you may have difficulty reaching port 8080 for the Web UI or the game ports. If you're feeling dangerous and trust your router to block evil intruders, you can disable the Windows Firewall for all profiles by issuing the following command: netsh advfirewall set allprofiles state off


  • FuhrerDarqueSydeFuhrerDarqueSyde Join Date: 2004-10-04 Member: 32076Members, Constellation
    edited October 2017

    2017-10-22 20:34 Central (U.S.)
    Added note about Windows Firewall.

    2017-10-22 20:22 Central (U.S.)
    Removed avicap32.dll as a dll required to be transferred. It does not appear to be required.
Sign In or Register to comment.