*

Offline FunkyFr3sh

  • Maker of official unofficial stuff!
  • Administrator
  • *
  • 2468
How to host a CnCNet server
« on: January 19, 2017, 01:13:29 PM »
How to host a CnCNet server




Command & Conquer 1, Red Alert, Tiberian Sun, Dune 2000 (+ Mods)


Linux (Ubuntu) example:


sudo apt-get install libmono-system-core4.0-cil mono-runtime

wget http://downloads.cncnet.org/cncnet-server.exe

nohup mono cncnet-server.exe --name "My cool server" --maxclients 100 --port 50001 > cncnet-server.log &



Server doesn't work? Get the latest mono version:


sudo apt-key adv --keyserver hkp://keyserver.ubuntu.com:80 --recv-keys 3FA7E0328081BFF6A14DA29AA6A19B38D3D831EF

echo "deb http://download.mono-project.com/repo/debian wheezy main" | sudo tee /etc/apt/sources.list.d/mono-xamarin.list

sudo apt-get update

sudo apt-get upgrade

sudo apt-get install libmono-system-core4.0-cil mono-runtime

wget http://downloads.cncnet.org/cncnet-server.exe

nohup mono cncnet-server.exe --name "My cool server" --maxclients 100 --port 50001 > cncnet-server.log &



Other distros
http://www.mono-project.com/docs/getting-started/install/linux/



Windows:

On XP, Vista and 7 make sure .NET 4.0 is installed: https://www.microsoft.com/en-us/download/details.aspx?id=17718

Use the following batch file: http://downloads.cncnet.org/cncnet-server.bat

Or run the server manually: http://downloads.cncnet.org/cncnet-server.exe




Yuris Revenge (+ Mods)


Linux (Ubuntu) example:

sudp apt-get install default-jre

wget https://cncnet.org/files/cncnet-tunnel.exe

nohup java -jar cncnet-tunnel.exe -name "My cool server" -maxclients 100 -port 50000 -headless > cncnet-tunnel.log &



Windows:

Download the server and start it: https://cncnet.org/files/cncnet-tunnel.exe




Linux autostart

crontab -e

@reboot nohup mono ~/cncnet-server.exe --name "My cool server" --maxclients 100 --port 50001 > ~/cncnet-server.log &



Note: The servers will not show up instantly on the website, it can take up to 30 minutes


« Last Edit: February 12, 2017, 06:35:56 PM by FunkyFr3sh »