Jump to content
Sign in to follow this  
warlock2511

Arma2 dedicated server howto

Recommended Posts

im trying to start a dedicated server on diff pc, accessible for friends online but everytime i try to start it i get 'cannot start host on port 2302', however when i start it as a lan server i have no problems. im working behind a router with all ports open but cant seem to get this working.

LAN Batch = arma2oaserver.exe -maxMem=2048 -name=defaultserver -profiles=defaultserver -cfg=defaultserver\basic.cfg -config=defaultserver\server.cfg

Internet Batch = arma2oaserver.exe -ip=(external ip) -port=2302-maxMem=2048 -name=defaultserver -profiles=defaultserver -cfg=defaultserver\basic.cfg -config=defaultserver\server.cfg

any ideas would be damned cool!!

Share this post


Link to post
Share on other sites

You only need the -ip=x.x.x.x on the commandline, if the PC hosting has multiple IP addresses. remove that, and forward UDP-2302~2305 to the ip of the hosting pc, in your router.

VisceralSyn

Edited by VisceralSyn
corrections

Share this post


Link to post
Share on other sites

Hi everyone!

If I start dedicated server using arma2oaserver.exe it works fine. But if I start dedicated server using Steam's tool I can not connect to it - pops up window "Connection lost". What's the matter?

Parameters:

-cfg=basic.cfg -config=server.cfg -mod=@inidbi;@server -name=server -profiles=profiles

From arma2oaserver.RPT if I start dedicated server using arma2oaserver.exe:

=====================================================================
== D:\Steam\steamapps\common\Arma 2 Operation Arrowhead\arma2oaserver.exe
== "D:\Steam\steamapps\common\Arma 2 Operation Arrowhead\arma2oaserver.exe" -cfg=basic.cfg -config=server.cfg -mod=@inidbi;@server -name=server -profiles=profiles
=====================================================================
Exe timestamp: 2014/08/14 12:45:09
Current time:  2014/08/14 13:17:13

Version 1.63.125402
13:17:13 Server error: Player without identity Schatten (id *********)
13:17:13 Server error: Player without identity Schatten (id *********)
13:17:13 Server error: Player without identity Schatten (id *********)
13:17:13 Server error: Player without identity Schatten (id *********)
13:17:13 Server error: Player without identity Schatten (id *********)
13:17:13 Server error: Player without identity Schatten (id *********)
13:17:13 Server error: Player without identity Schatten (id *********)
13:17:13 Server error: Player without identity Schatten (id *********)
13:17:13 Server error: Player without identity Schatten (id *********)
13:17:13 Server error: Player without identity Schatten (id *********)
13:17:13 Server error: Player without identity Schatten (id *********)
13:17:13 Server error: Player without identity Schatten (id *********)
13:17:13 Server error: Player without identity Schatten (id *********)
13:17:13 Server error: Player without identity Schatten (id *********)
13:17:13 Server error: Player without identity Schatten (id *********)
13:17:13 Server error: Player without identity Schatten (id *********)

From arma2oaserver.RPT if I start dedicated server using Steam's tool:

=====================================================================
== D:\Steam\steamapps\common\Arma 2 Operation Arrowhead\ARMA2OASERVER.exe
== "D:\Steam\steamapps\common\Arma 2 Operation Arrowhead\ARMA2OASERVER.exe" -cfg=basic.cfg -config=server.cfg -mod=@inidbi;@server -name=server -profiles=profiles
=====================================================================
Exe timestamp: 2014/08/14 12:45:09
Current time:  2014/08/14 12:49:20

Version 1.63.125402
12:49:20 Server error: Player without identity Schatten (id *********)

No errors in server's console.

Edited by Schatten

Share this post


Link to post
Share on other sites

Try running Steam as administrator could help. Or else try this: Are you sure the steam query port is forwarded in the router? You can also manually change the scanning and join port in the server config:

i have it like this:

steamport=2300;

steamqueryport=2301;

org:

steamport =8766; //default 8766, needs to be unique if multiple serves on same box

steamqueryport =27016; //default 27016, needs to be unique if multiple servers on same box

Share this post


Link to post
Share on other sites
Try running Steam as administrator could help.

Did not help.

Are you sure the steam query port is forwarded in the router?

Yes, I'm sure.

From server.cfg:

steamPort = 8766;
steamQueryPort = 27016;

If I start dedicated server using arma2oaserver.exe packets pass through steamQueryPort and everyone can connect to my server. If I start dedicated server using Steam's tool packets pass through steamQueryPort too, but NO ONE can connect to my server.

Edited by Schatten

Share this post


Link to post
Share on other sites

Try without any mods first and verifySignatures = 0

Share this post


Link to post
Share on other sites
Try without any mods first and verifySignatures = 0

Did not help.

My server.cfg:

hostName = "something";
maxPlayers = 60;
motd[] = {"something"};
motdInterval = 5;
password = "";
passwordAdmin = "something";

allowedLoadFileExtensions[] = {"hpp","sqs","sqf","fsm","cpp","paa","txt","xml","inc","ext","sqm","ods","fxy","lip","csv","kb","bik","bikb","html","htm","biedi"};
allowedPreprocessFileExtensions[] = {"hpp","sqs","sqf","fsm","cpp","paa","txt","xml","inc","ext","sqm","ods","fxy","lip","csv","kb","bik","bikb","html","htm","biedi"};
BattlEye = 1;
kickDuplicate = 1;
localClient[] = {127.0.0.1};
onHackedData = "ban (_this select 0)";
persistent = 1;
reportingIP = "";
requiredBuild = 125548;
requiredSecureId = 2;
steamPort = 8766;
steamQueryPort = 27016;
timeStampFormat = "short";
verifySignatures = 2;
voteMissionPlayers = 3;
voteThreshold = 1.33;

class Missions
{
class something
{
	template = "something.Takistan";
	difficulty = "veteran";
};
};

Share this post


Link to post
Share on other sites

Usually the instant "Connection Lost" message is due to a bad .bikey file for one of the mods but if you are loading no mods then obviously that is not the case (and verifySignatures=0 would have allowed you to connect).

Do you have desktop access to your server (ie: you can see the console window when the server starts)?

If so does the title bar of the console window say: Arma 2 OA Console version 1.63 : port 2302

Also I would try disabling these 2 lines in your server.cfg:

requiredBuild = 125548;

requiredSecureId = 2;

Share this post


Link to post
Share on other sites
Do you have desktop access to your server (ie: you can see the console window when the server starts)?

Yes, I start dedicated server from my computer.

If so does the title bar of the console window say: Arma 2 OA Console version 1.63 : port 2302

Yes, the title bar of the console window say "ArmA 2 OA Console version 1.63 : port 2302".

More info see in my previous message.

Also I would try disabling these 2 lines in your server.cfg:

requiredBuild = 125548;

requiredSecureId = 2;

I tried - didn't help.

Share this post


Link to post
Share on other sites

Well having never used Steam's tool I'm not sure what else to suggest other than don't use it :p There isn't much to go on in the RPT you posted I've seen that error on perfectly functional servers as well (Player without identity).

You can verify your server is talking to Steam by using this link and putting your server's IP address at the end:

http://api.steampowered.com/ISteamApps/GetServersAtAddress/v0001?addr=[b]EnterYourServerIpHere[/b]

You should get a response like:

{
"response": {
	"success": true,
	"servers": [
		{
			"addr": "x.x.x.x:2303",
			"gmsindex": 65534,
			"appid": 33930,
			"gamedir": "arma2arrowpc",
			"region": -1,
			"secure": false,
			"lan": false,
			"gameport": 2302,
			"specport": 0
		},
	]

}
}

Share this post


Link to post
Share on other sites
Well having never used Steam's tool I'm not sure what else to suggest other than don't use it :p

I used A2OA Dedicated Server from Steam's Tools because if I started dedicated server using arma2oaserver.exe, Steam reported that I started the game. Because of this, I could not start the game. But Steam was updated a few hours ago. Now if I start arma2oaserver.exe, Steam doesn't report that I started the game.

So problem is removed for the time being. Thx for help.

You can verify your server is talking to Steam by using this link and putting your server's IP address at the end:

http://api.steampowered.com/ISteamApps/GetServersAtAddress/v0001?addr=[b]EnterYourServerIpHere[/b]

My response:

{
"response": {
	"success": true,
	"servers": [
		{
			"addr": "*.*.*.*:2303",
			"gmsindex": 65534,
			"appid": 33930,
			"gamedir": "arma2arrowpc",
			"region": -1,
			"secure": false,
			"lan": false,
			"gameport": 2302,
			"specport": 0
		}
	]

}
}

* I changed steamQueryPort to 2303.

Edited by Schatten

Share this post


Link to post
Share on other sites

Oh no... Steam reports again that I start A2OA after launching arma2oaserver.exe. So I can't start A2OA.

I think that solution is using A2OA Dedicated Server from Steam's tools. But if I start this tool NO ONE can connect to my server. However, if I launch arma2oaserver.exe everyone can connect to my server. What's the problem?

Share this post


Link to post
Share on other sites

Please sign in to comment

You will be able to leave a comment after signing in



Sign In Now
Sign in to follow this  

×