Dawnspire Community Forums

Dawnspire => General Discussion => Topic started by: PimpFather on January 03, 2009, 11:03:16 AM



Title: Setting up a server
Post by: PimpFather on January 03, 2009, 11:03:16 AM
This is some gathered info about how to set up a server in DS. I thought it would be good to have this in one place. Perhaps Johan can make this thread sticky. Feel free to add comments and questions, and I'll change this info so that it is correct.

From the DS FAQ:

Hosting your own Dawnspire server

Server requirements

Hosting your own Dawnspire server is possible on any computer that can run the game, and with some special command line parameters it is also possible to host a server without a compliant graphics card. In terms of bandwidth we recommend at least 1MB upstream if you plan to host 16 player games, more is obviously better *). You will also need to open the selected server port (default 3170) for use with UDP and TCP. If you are behind a NAT firewall you will have to forward all traffic on the same port to the computer which will be serving the game.

Registering the server
You can register one or more servers at the bottom of your personal page, here you give your server a name, specify the number of players allowed, a map cycle, ranking and / or experience limits for the server and also if the server is to be logged or not. Note that servers that are created by players are NOT ranked and cannot give you any experience or rating initially. If you would like to see your server ranked, contact us on support@silent-grove.com **).

Starting a server in the game
To start a server login to the game as usual, then click the Host button in the left side menu ***), you will be presented with a list of your registered servers. Select a server in the list and click the Start button to start the server. The servers name will be suffixed with (Started) when the server is active.

Commandline options for dedicated servers
It is possible to start a server automatically on game launch using command line parameters. Adding the following to a shortcut will automatically login the player my@address.com and start the server with id 16 (you can see the servers id in the address field of your browser while editing it). Also note the optional noDevice parameter that forces the game to start without loading any UI graphics, in this mode you cannot interact with the game in any way but the server will be running.

-username my@address.com -password myPass -startServers 16 noDevice

Also note that it is possible to host several servers on one machine as long as they use different ports. To start more than one server just adds the server ids after -startServers separated by commas, like so:

-startServers 16,32,111



*) 1 MBPS upstream is enough for perhaps 10 or 12 player games, not more so consider this when setting up the number of maximum users and number of bots. / Pimp
**) You should contact Johan (http://dawnspire.tinyrocket.se/index.php?l=true#showPlayer&id=5848) to get your server ranked, not support@silent-grove.com. / Pimp
***) The button for hosting is the one most to the right on the bottom of the strarting page. / Pimp


From the DS-Wiki:

Setting up the host in Dawnspire is very easy. See the Dawnspire official FAQ on how to set up a host. Just follow the steps mentioned in the FAQ, and things should run smoothly.

If you want to run a dedicated host on a separate computer from the one you are playing on, create a trial account and register your servers under it. This allows you to play on your computer with your account without eating resources from the server, and thus server performance can be better for the others joining.

Those with hosting problems should check:

Firewall and router settings.

Your firewall (both hardware and/or software firewall) must allow traffic both *in* and *out* through the designated port, using *both* UDP and TCP protocols. Also notice that Microsoft Updater sometimes turns on automatically the Windowds Firewall, so check that it is not on.

See portforward.com on how to handle port-forwarding on your router. Please notice that you must be the network administrator, and should have some familiarity with setting up routers, if you are meddling the settings on your network. At the very least do read the manual of your router.
If the settings are ok, turn firewall off, and put router on DMZ. This is done to just verify if the issue is with firewall and/orrotuer after all. If the host works now, then it indicates you failed to so something right in step 1.
You might have a trojan or virus that is interfering (either using a crucial port (in case of a trojan) or resource (trojan or virus). Check your system for trojans and virues.
If nothing else helps, check with your Internet provider that they are not applying a NAT policy, or that they do not block some ports (some ISPs (especially companies and Universities) are known to sometimes block ports that are widely used by p2p filesharing networks).

To check if there is a NAT policy (when you think there isn't, or if you are not quite sure) affecting your hosting possibilities, assuming you use Windows XP:

Start -> Run -> type cmd and press enter. Type ipconfig at the command prompt and press enter. Take note of your IP-addres from the report.
Open your web-browser and go to whatismyip.com and take note of your reported IP-address.
Compare the IP addresses from 1 and 2. They must be exactly same if you want to be able to host Dawnspire (or most any other games too), or you have to configure your router correctly.

Notice that many university and business networks are blocking many ports to limit the un-purpouseful burden on the network. Please check with the network administrators if you are allowed to run a Dawnspire server in the network, and what ports you can use.

Retrieved from "http://www.dawnspirewiki.com/index.php?title=Hosting"

 :) / Pimp


Title: Re: Setting up a server
Post by: Maci on January 11, 2009, 21:05:12 PM
how did you check your server ID again?...anyone?


Title: Re: Setting up a server
Post by: Maci on January 11, 2009, 21:06:33 PM
NVMVNVMNVMNV!! sorry


Title: Re: Setting up a server
Post by: Hullu on January 11, 2009, 21:15:10 PM
Maci is so cute.


Title: Re: Setting up a server
Post by: Maci on January 11, 2009, 21:20:05 PM
*makes puppydog face* :O i am..no waaaaayyy!, why cant i make the dedicated server thingy work...oh well more fiddleing ftw i guess


Title: Re: Setting up a server
Post by: PimpFather on January 13, 2009, 18:28:17 PM
What do you mean with server ID? Yor IP-address, or is there a special DS server ID?


Title: Re: Setting up a server
Post by: FLuori on January 13, 2009, 20:45:16 PM
Every server has own ID.
One way to see server ID: Go to your (or any) servers page and you can see it from url line. I don't know if there is some other way to see it, but...
I'm not God, so I might be wrong.

And for an example, your "PimpMyServer" ID is 279.


Title: Re: Setting up a server
Post by: Hullu on January 14, 2009, 05:49:49 AM
I'm not God, so I might be wrong.

I wouldn't be so sure of that.


Title: Re: Setting up a server
Post by: FLuori on January 14, 2009, 21:31:50 PM
The God is in the HOUSE!


Title: Re: Setting up a server
Post by: PimpFather on January 15, 2009, 12:05:37 PM
Thanks! But why would you want to know the ID?


Title: Re: Setting up a server
Post by: Hullu on January 15, 2009, 12:18:43 PM
That way you can go to the server page even when it's offline.

I.E. http://dawnspire.tinyrocket.se/#showServer&id=279 that's your server. On the URL you see your ID, and if enter another number, you see that server. Easy way to access that page when the server is offline.


Title: Re: Setting up a server
Post by: Maci on January 15, 2009, 12:46:02 PM
hullu your so awesome!!!, pimp i followed the instructions on how to set up a dedicated server..i dont get it to work for some odd reason..have anyone tryd it besides me? if so whhatt the hell am i doing wrong! ^^


Title: Re: Setting up a server
Post by: Hullu on January 15, 2009, 12:48:53 PM
You're being too Macu!


Title: Re: Setting up a server
Post by: johan on January 15, 2009, 18:36:33 PM
This is what my shortcut looks like
Code:
"C:\Program Files (x86)\Silent Grove Studios\Dawnspire\Dawnspire.exe" -launcher -username johan -password ... -startServers 173 noDevice


Title: Re: Setting up a server
Post by: Maci on January 15, 2009, 20:06:55 PM
okay..theres nothing wrong i just wrote my player id instead of the server id...it works now...YAY ^^ thanks for reminding me johan :)


Title: Re: Setting up a server
Post by: PimpFather on January 21, 2009, 20:39:54 PM
If you set up a server and can't log in to it yourself, but others can, you can change your "Client port" in the settings.xml file to 3169. That might help (it did for me).


Title: Re: Setting up a server
Post by: FLuori on January 31, 2009, 13:09:07 PM
If you set up a server and can't log in to it yourself, but others can, you can change your "Client port" in the settings.xml file to 3169. That might help (it did for me).
My Client Port is already 3169... where are all of those working solutions?


Title: Re: Setting up a server
Post by: Persus on February 01, 2009, 22:45:27 PM
So has any one managed to set up a server on Vista? When ever I try it it just crashes the machine or freezes needing a restart. I can do it on XP ok but not Vista.


Title: Re: Setting up a server
Post by: FLuori on February 02, 2009, 14:23:23 PM
I'm totally out of ideas. And im not gonna host server only for you! I want to play too


Title: Re: Setting up a server
Post by: PimpFather on February 04, 2009, 21:43:30 PM
I host on Vista, and it works just fine (slow, yes, but that is nt Vista's fault :))


Title: Re: Setting up a server
Post by: CyberEndDragon on February 20, 2009, 22:47:53 PM
i cant host on vista iver :( the same thing happens it just stops :(


Title: Re: Setting up a server
Post by: FLuori on February 20, 2009, 23:08:55 PM
1 year before I had XP... and yeah, same problem. operating system is not problem.


Title: Re: Setting up a server
Post by: valdrea on March 10, 2009, 22:21:38 PM
wish it wasnt so complicated to host.  :-\


Title: Re: Setting up a server
Post by: Swiss on March 11, 2009, 05:10:02 AM
wish it wasnt so complicated to host.  :-\

Hosting is not really complicated..
All that is "hard" in hosting is opening the port 3170 from your router.
Your firewall most likely has the settings for it.. If not I highly recommend uninstalling the current one and installing Comodo, which is a free firewall and it's ATM third best firewall in the industry. Only better ones are Panda and norman as they stated.


Title: Re: Setting up a server
Post by: Waker on December 23, 2009, 00:57:43 AM
Hey, i want to make my how server but, i dont know hot to setup my server... PimpMyServer has a "automatic" bots system... how can i put that in my server? how can i change my server's name?(P.S. o have my modem ports opened :D(Current name is: My Portuguese Server)...)


Title: Re: Setting up a server
Post by: PimpFather on December 23, 2009, 20:12:14 PM
Hey, i want to make my how server but, i dont know hot to setup my server... PimpMyServer has a "automatic" bots system... how can i put that in my server? how can i change my server's name?(P.S. o have my modem ports opened :D(Current name is: My Portuguese Server)...)

"i dont know to setup my server" - Be more specific if you have other questions than the one below...

Automatic bot system, I guess you mean bot editing, you can find that here http://dawnspire.tinyrocket.se/forum/index.php/topic,670.0.html (http://dawnspire.tinyrocket.se/forum/index.php/topic,670.0.html)

"how can i change my server's name" Go in under My Page and click on your server that you wish to change the name. Then you can edit the name.

Good luck! /Pimp


Title: Re: Setting up a server
Post by: Skaldorin on April 30, 2010, 14:29:43 PM
Ah, I see my wiki article for hosting servers have been quoted here :)

A few things for those with Vista and wanting to host a Dawnspire server:

1) The game must not be installed under C:/Programs
If it, reinstall it somewhere else (preferably not in the C (partition of the) hard-drive, but at the very least in some other folder (like C:/Games/Dawnspire
If the game is installed under C:/Programs, Vista will scatter files around under other folder as it sees fit -> you won't be able to run a server. This btw is true for any other game too where you would want to host a server.

2) You must be logged on with Admin rights. Without admin rights Vista won't let the host work.



Other than that, hosting a Dawnspire serve is *not* difficult. And yet, if you are trying to set up a host from behind a firewall/router and you do not have a clue of what firewalls or routers do, you might very well be advised to stay well clear of hosting *any* game (not just Dawnspire ;) ), as you might be able to do something you definitively didn't intend to do. At the very least read the manuals of your firewall and router, and don't forget to ask permission from the network admin (no matter if that network admin is your grandpa or your nephew, he *has to* be made aware of what you are doing :) ).


Title: Re: Setting up a server
Post by: Persus on April 30, 2010, 14:50:57 PM
I never knew that. That might answer the problem of why I can't host a server on my Vista machine and why it crashes all the time if I try. Doesn't explan the same problem happening on my Xp machine though. I can start and join it but no one else can.


Title: Re: Setting up a server
Post by: Skaldorin on April 30, 2010, 18:29:29 PM
I can start and join it but no one else can.
That is a firewall or router issue in that case. Set up them properly and your problem is fixed :)


Title: Re: Setting up a server
Post by: PimpFather on May 02, 2010, 20:00:43 PM
"1) The game must not be installed under C:/Programs"

Well, I hosted previously under Vista, and now under Window 7, and the program is installed under C:\Program (x86)\... and it works just fine.

:) / Pimp


Title: Re: Setting up a server
Post by: Persus on May 02, 2010, 21:00:10 PM
That is a firewall or router issue in that case. Set up them properly and your problem is fixed :)

I would agree except I used to be able to host during the Silent Grove era using the same firewall and router. The mystery contines.


Title: Re: Setting up a server
Post by: johan on September 24, 2010, 14:45:11 PM
Most likely, removed his post anyway.


Title: Re: Setting up a server
Post by: PimpFather on September 29, 2010, 05:46:03 AM
Perhaps Smisk or Nighty could remove this off-topic stuff to the off topic section. This is a pretty important thread IMHO. / Pimp