Post Reply 
[HOWTO] Windows Server Setup „Step by Step“
Author Message
R3M Offline
Greenhorn

Posts: 13
Joined: Jun 2010
Post: #1
[HOWTO] Windows Server Setup „Step by Step“
This tutorial shows how to set up a dedicated LaG windows server "Step by Step".

Setting up a dedicated LaG is pretty simple compared to other types of dedicated servers. Maybe some people will say a howto is not necessary, but they forget we all were newbies once and happy about a helping hand. Wink

Precondition:

- a dedicated box with a decent dual or quad core cpu running windows XP/2003/Vista/2008/7
- a public internet IP address, firewall ports 27016, 27017, 8766, 8767 must be unoccupied on ALL interfaces/ips (binding to specific IP does currently NOT work, and binding to all interfaces will fail if these ports are being used anywhere)

Windows Firewall: http://www.microsoft.com/windowsxp/using...tions.mspx

And here we go...

Step 1:

Download the dedicated server files, save and unpack it to your desktop.

FTP: ftp://ftp.fatshark.se/pub/win32_bundle_d...53_dev.zip

[Image: lag_tuto_01.png]

Copy and paste the content to an easy to remember Directory like C:\LaG

[Image: lag_tuto_02.png]

Step 2:

Go to the "install" folder and runt the PhysX_8.05.26_SystemSoftware.exe first.

[Image: lag_tuto_03.png]

Step 3:

Edit the server_config.xml to your needs with notepad eg. hostname, game specific cvars etc

[Image: lag_tuto_04.png]

Step 4:

Edit start.bat with notepad and copy this lines to it:

Quote:@echo off
cls
echo Protecting lagds from crashes...
title LaG DS Watchdog
:lagds
echo (%time%) lagds started.
start /affinity 1 /wait LAG_win32_public_dedicated_server.exe -dedicated_server -conf server_config.xml
echo (%time%) WARNING: lagds closed or crashed, restarting.
goto lagds

Quick explanation, this script will auto restarting your server when it crash, which will happen frequently since the server is still in beta status and a true resource hog.

The /affinity 1 switch will bound the server process to the CPU core 1, this will be handy when you hosting other game servers on the same box as well and separate them, otherwise it could crash and lag those too.

Dual core CPU:

Core 0 = 1
Core 1 = 2

Quad core CPU:

Core 0 = 1
Core 1 = 2
Core 2 = 4
Core 3 = 8

So when you like to run it on core 4 your need to set /affinity 8

Now double click start.bat and you should see your server coming up

[Image: lag_tuto_06.png]

Thats it.

GL & HF! Tongue

[Image: r3m.jpg]
(This post was last modified: 2010-08-31 12:03 by R3M.)
2010-06-28 16:56
Visit this user's website Find all posts by this user Quote this message in a reply
Jackson Offline
Greenhorn

Posts: 9
Joined: Jun 2010
Post: #2
RE: [HOWTO] Windows Server Setup „Step by Step“
Thank you. Didn't know that 4th step. TYVM.
2010-06-28 18:33
Find all posts by this user Quote this message in a reply
disconnect Offline
Gunman

Posts: 43
Joined: May 2010
Post: #3
RE: [HOWTO] Windows Server Setup „Step by Step“
Unfortunately the game never seems to actually "crash" for me, it just freezes, which means my serverdoc application will not restart it. It will sit in the frozen state until manually restarted.

http://hasslefreegaming.com
2010-06-28 19:45
Find all posts by this user Quote this message in a reply
gunshit Offline
Greenhorn

Posts: 12
Joined: Jun 2010
Post: #4
RE: [HOWTO] Windows Server Setup „Step by Step“
Hi R3M, thanks for the info and the tutorial. I didn't know you can adjust affinity from the "start.bat" file.

I have just one question, I wonder if there's some way I can join my own dedicated server from the same computer I host it. I have tried many times and ppl and friends can join it, but me from the same computer I host the server don't.

Thanks in advance.
2010-06-29 00:14
Find all posts by this user Quote this message in a reply
Jackson Offline
Greenhorn

Posts: 9
Joined: Jun 2010
Post: #5
RE: [HOWTO] Windows Server Setup „Step by Step“
THought I could follow the instructions and I still cant get it to work. I cant seem to find the server when I launch the game from my laptop. I'm doing something wrong and can't figure it out. Once again can I ask for a start and setup file that is a little more foolproof. I opened the ports on my firewall. Dont know what else to do. THis is my first time running a dedis and I wouldnt even be trying it if the game didnt need them so badly
2010-06-29 03:50
Find all posts by this user Quote this message in a reply
R3M Offline
Greenhorn

Posts: 13
Joined: Jun 2010
Post: #6
RE: [HOWTO] Windows Server Setup „Step by Step“
Hi folks, I think you cant do nothing about the server freezing, its pretty uncommon that a server or service is running at 100% all the time even when its on idle. So I hope the DEVs will fix this in the next version and the freeze will gone.

And about the unable to connect to your server when its on the same machine / lan, I don't have this issue because my root server is located in a data center 200 kilometer away from my home. But I will try to replicate that problem later, I guess its because there is no IP and PORT parameter for the startup line, I know a similar problem with the source dedicated server, when you don't set a ip and port there too.

[Image: r3m.jpg]
2010-06-29 06:58
Visit this user's website Find all posts by this user Quote this message in a reply
Jackson Offline
Greenhorn

Posts: 9
Joined: Jun 2010
Post: #7
RE: [HOWTO] Windows Server Setup „Step by Step“
(2010-06-29 06:58)R3M Wrote:  And about the unable to connect to your server when its on the same machine / lan, I don't have this issue because my root server is located in a data center 200 kilometer away from my home. But I will try to replicate that problem later, I guess its because there is no IP and PORT parameter for the startup line, I know a similar problem with the source dedicated server, when you don't set a ip and port there too.

Well I'm not on the same machine. I'm using a laptop to play the game and my sister's desktop to run the server. (Yes I was born in WV and I live with my sister- moving on) I cant see my game when I'm playing and I asked my brother to look for the server from across town and her couldnt find it either. But if I look at my sisters box (not that box... WV.. yeah I get it) it appears that games have been running there. What gives? What am I not doing right? I don't think that its fair that other guys get to play in my sister's box and I don't. Okay I'll stop now.
(This post was last modified: 2010-06-29 07:43 by Jackson.)
2010-06-29 07:39
Find all posts by this user Quote this message in a reply
barremans Offline
Desperado

Posts: 345
Joined: May 2010
Post: #8
RE: [HOWTO] Windows Server Setup „Step by Step“
nice job !!!!!!! dint now step 4 issue cpu cores , THX a Lot

[Image: s2sn40.jpg]
visit my gaming site

[Image: 811277903594.png]
2010-06-29 12:15
Visit this user's website Find all posts by this user Quote this message in a reply
R3M Offline
Greenhorn

Posts: 13
Joined: Jun 2010
Post: #9
RE: [HOWTO] Windows Server Setup „Step by Step“
No problem you welcome. Wink

Jackson, can you please post a screenshot of your firewall ports/configuration, from both sides your laptop, the desktop where the server runs on and from your router firewall? And sometimes enabling UPnP / Port Triggering on the router could help.

And for further testing purpose, I would suggest to shut off all firewalls and anti-virus and security software, just to be safe there is nothing blocking you from connecting to the server, and turn it on later again.

[Image: r3m.jpg]
2010-06-29 13:05
Visit this user's website Find all posts by this user Quote this message in a reply
Jackson Offline
Greenhorn

Posts: 9
Joined: Jun 2010
Post: #10
RE: [HOWTO] Windows Server Setup „Step by Step“
R3M, Disabled the windows firewall on my sisters box and now it's up. Took it back down though. I gotta figure out what I need to do to the ports. Not sure what to take a screenshot of. I'm gonna look to add more ports to the exceptions. Did it for inbound and outbound on TCP. Gonna try doin it for UDP also. I dont even know what the difference is.
added the ports 27016, 27017, 8766, 8767 to allow. gonna give it another shot
ok WELL that didnt work. It only works when I have the firewall down completely. What do you need to see a screenshot of? I am so close to getting this working.
(This post was last modified: 2010-06-29 15:50 by Jackson.)
2010-06-29 15:44
Find all posts by this user Quote this message in a reply
Post Reply