Page 1 of 3

At my wits end

PostPosted: Sun Sep 23, 2007 7:02 am
by daedilus
Hey guys. /same old spiel I started a server for myself and my roomate to play around with. His computer runs the server, mine (which is 2 feet away) is attempting to connect. After I select a character on mine I am forcibly disconnected.

00:02:27,796 - [3616] - INFO - DOL.GS.GameEvents.StatPrint - -stats- Mem=288322kb Clients=1 Down=0kb/s (0MB) Up=0kb/s (0MB) In=0pck/s (0K) Out=8pck/s (0K) Pool=24/25(1) IOCP=1000/1000(1) RegionTime1=9t/s (1642) CPU=0.3% DOL=0.3%
00:02:38,609 - [2008] - INFO - DOL.ClientBase - not connected An existing connection was forcibly closed by the remote host
00:02:38,609 - [2008] - DEBUG - DOL.GS.GameClient - Linkdeath called (stalos) client state=Playing
00:02:38,609 - [2008] - INFO - DOL.GS.GamePlayer - Player Zag(stalos) went linkdead!

00:02:39,265 - [2008] - INFO - DOL.GS.GamePlayer - Zag saved!
00:02:39,265 - [2008] - INFO - DOL.GS.GamePlayer - Linkdead player Zag(stalos) will quit in 20
00:02:57,796 - [3616] - INFO - DOL.GS.GameEvents.StatPrint - -stats- Mem=286893kb Clients=0 Down=0kb/s (0MB) Up=0kb/s (0MB) In=0pck/s (0K) Out=2pck/s (0K) Pool=24/25(1) IOCP=1000/1000(1) RegionTime1=9t/s (1640) CPU=2.6% DOL=2.6%
00:02:59,265 - [RegionTime1] - INFO - DOL.GS.GamePlayer - Zag saved!
00:02:59,281 - [RegionTime1] - DEBUG - DOL.GS.Spells.ConcentrationList - (Zag) cancels all conc spells leaveself: False
00:02:59,281 - [RegionTime1] - DEBUG - DOL.GS.GamePlayer - (Zag) player.Delete
00:02:59,281 - [RegionTime1] - DEBUG - DOL.GS.Region - RemoveObject: OID10494 Zag(R100) from Midgard
00:02:59,281 - [RegionTime1] - DEBUG - DOL.GS.GamePlayer - (Zag) player.Delete
00:02:59,281 - [RegionTime1] - DEBUG - DOL.GS.Spells.ConcentrationList - (Zag) cancels all conc spells leaveself: False
00:02:59,281 - [RegionTime1] - DEBUG - DOL.GS.GamePlayer - (Zag) player.Delete
00:02:59,281 - [RegionTime1] - INFO - DOL.GS.GameClient - (not connected) stalos just disconnected!

I have searched the forums for any sort of help on this, and it all comes back to port forwarding. I pretty much relied on the posts to actually set it up enough that I could connect on the main computer, so I am not too sure what I have done wrong. Steps taken:

Ports 10300 and 10400 forwarded (both TCP and UDP) to the host computer's LAN IP (192.168 etc etc)

Firewalls disabled

IP set to host's LAN IP and RegionIP set to host's external IP in serverconfig

I am using a Trendnet router, the NewDOLServer application to start the server, DAoCPortal to connect to the server (custom shard set to the host's LAN IP), and the EU version of Dark Age (Labrynth expansion) patched completely, and oh yes, the newest build of the DOL server and databases.

As I said, the game runs fine while running it on the host computer (albeit a bit laggy but is to be expected), but I cannot stay connected from my own computer. Any help would be appreciated.

PostPosted: Sun Sep 23, 2007 7:20 am
by KyleB
You might have to go to 192.168.0.1 and enable DMZ hosting, I had to do that a few times on different routers to be able to host as well as the port forwarding

PostPosted: Sun Sep 23, 2007 1:00 pm
by Tolakram
Is that computer running just the server, or a server and a client?

How much RAM?

What speed?

Don't go setting DMZ until you know what the problem is.

You can open ports 15300-15400 (the entire range not needed but I forget the exact ports) if that machne has a firewall running.

What version client do you have?

PostPosted: Sun Sep 23, 2007 2:18 pm
by Dinberg
Does this happen for every character, or just zag? If it only occurs for 'Zag', it may well be that the character in question has been corrupted somehow, and some incorrect packets are being sent to the client that causes an error (like if you have a name greater than a certain amount of characters).

PostPosted: Sun Sep 23, 2007 3:22 pm
by daedilus
The computer that is being disconnected is running just the client.

The machine running the server and a client is an AMD 64 3500+ with 1 gig of ram, the machine being disconnected is the exact same.

Both are running the fully patched EU client (I think it is 1.88 ).

It happens for every character I create on the second machine, as well as with any account I try. I will try to open 15300 - 15400, I am not really wanting to enable DMZ so hopefully there is another solution.

PostPosted: Sun Sep 23, 2007 3:34 pm
by IStandAloneToo
Also, is this on LAN? If it is, you don't need to do port forwarding :). Just do the 127.0.0.1 IP and you should be good. How we play it here in my apartment :).

PostPosted: Mon Sep 24, 2007 4:07 am
by daedilus
Well I tried the firewall idea, but to no avail.

I am on a LAN but even after setting it to the default settings again and trying on 127.0.0.1 I had no luck. I can connect on the host machine, but not on the second. Not sure what is not working.

**edit**
When trying to connect on the LAN ( 127.0.0.1 ) it will no longer even go into the character select screen, but instead stops during loading with the "Service not available" message.

PostPosted: Mon Sep 24, 2007 2:20 pm
by Tolakram
In your server config xml file there are 2 ports that DOL uses. Are you sure both those ports are available to an external machine? I can't think of why else it wouldn't connect. You don't have zonealarm or anything like that running, do you?

PostPosted: Mon Sep 24, 2007 4:09 pm
by daedilus
Nope to zone alarm, and if you are referring to ports 10300 and 10400 then yep they are open.

PostPosted: Mon Sep 24, 2007 4:26 pm
by daedilus
Anything here seem wonky??

10:20:22,718 - [MAIN] - INFO - DOL.GS.GameServer - GameServer is now open for connections!
10:20:32,093 - [2772] - INFO - DOL.GS.GameEvents.StatPrint - -stats- Mem=286883kb Clients=0 Down=0kb/s (0MB) Up=0kb/s (0MB) In=0pck/s (0K) Out=0pck/s (0K) Pool=24/25(1) IOCP=1000/1000(1) RegionTime1=8439t/s (1572) CPU=17.2% DOL=16.8%
10:20:35,656 - [3632] - INFO - DOL.BaseServer - Incoming connection from 192.168.1.101:3999
10:20:36,218 - [3632] - INFO - DOL.GS.PacketHandler.Client.v168.LoginRequestHandler - (192.168.1.101:3999)User stalos logging on! (Version188 type:LabyrinthOfTheMinotaur add:bit4, bit5, Foundations, NewFrontiers)
10:20:53,187 - [RegionTime1] - DEBUG - DOL.GS.PacketHandler.Client.v168.WorldInitRequestHandler - Client stalos(Zig PID:1 OID:10494) entering Region Midgard(ID:100)
10:21:02,093 - [2772] - INFO - DOL.GS.GameEvents.StatPrint - -stats- Mem=286858kb Clients=1 Down=0kb/s (0MB) Up=0kb/s (0MB) In=0pck/s (0K) Out=1pck/s (0K) Pool=24/25(1) IOCP=1000/1000(1) RegionTime1=0t/s (1572) CPU=1.3% DOL=1.0%
10:21:11,234 - [RegionTime1] - DEBUG - DOL.GS.PacketHandler.Client.v168.PlayerInitRequestHandler - Client stalos(Zig) entering world: pid->1 oid->10494
10:21:11,281 - [RegionTime1] - DEBUG - DOL.GS.Scripts.ScriptMgr - Found spell handler DOL.GS.Spells.DamageAddSpellHandler
10:21:11,296 - [RegionTime1] - DEBUG - DOL.GS.Scripts.ScriptMgr - Found spell handler DOL.GS.Spells.StrengthConBuff
10:21:32,093 - [2772] - INFO - DOL.GS.GameEvents.StatPrint - -stats- Mem=287043kb Clients=1 Down=0kb/s (0MB) Up=0kb/s (0MB) In=0pck/s (0K) Out=9pck/s (0K) Pool=24/25(1) IOCP=1000/1000(1) RegionTime1=5t/s (1645) CPU=1.2% DOL=0.5%
10:21:55,796 - [3632] - INFO - DOL.ClientBase - not connected An existing connection was forcibly closed by the remote host
10:21:55,796 - [3632] - DEBUG - DOL.GS.GameClient - Linkdeath called (stalos) client state=Playing
10:21:55,812 - [3632] - INFO - DOL.GS.GamePlayer - Player Zig(stalos) went linkdead!
10:21:55,828 - [3632] - INFO - DOL.GS.GamePlayer - Zig saved!
10:21:55,828 - [3632] - INFO - DOL.GS.GamePlayer - Linkdead player Zig(stalos) will quit in 20
10:22:02,093 - [2772] - INFO - DOL.GS.GameEvents.StatPrint - -stats- Mem=286899kb Clients=0 Down=0kb/s (0MB) Up=0kb/s (0MB) In=0pck/s (0K) Out=8pck/s (0K) Pool=24/25(1) IOCP=1000/1000(1) RegionTime1=10t/s (1649) CPU=1.4% DOL=0.4%
10:22:15,828 - [RegionTime1] - INFO - DOL.GS.GamePlayer - Zig saved!
10:22:15,843 - [RegionTime1] - DEBUG - DOL.GS.Spells.ConcentrationList - (Zig) cancels all conc spells leaveself: False
10:22:15,843 - [RegionTime1] - DEBUG - DOL.GS.Effects.GameSpellEffect - Zig: CancelEffect playerCanceled=False SpellType=DamageAdd
10:22:15,843 - [RegionTime1] - DEBUG - DOL.GS.Effects.GameSpellEffect - Zig: CancelEffect playerCanceled=False SpellType=StrengthConstitutionBuff
10:22:15,859 - [RegionTime1] - DEBUG - DOL.GS.GamePlayer - (Zig) player.Delete
10:22:15,859 - [RegionTime1] - DEBUG - DOL.GS.Region - RemoveObject: OID10494 Zig(R100) from Midgard
10:22:15,859 - [RegionTime1] - DEBUG - DOL.GS.GamePlayer - (Zig) player.Delete
10:22:15,859 - [RegionTime1] - DEBUG - DOL.GS.Spells.ConcentrationList - (Zig) cancels all conc spells leaveself: False
10:22:15,859 - [RegionTime1] - DEBUG - DOL.GS.GamePlayer - (Zig) player.Delete
10:22:15,859 - [RegionTime1] - INFO - DOL.GS.GameClient - (not connected) stalos just disconnected!
10:22:32,093 - [2772] - INFO - DOL.GS.GameEvents.StatPrint - -stats- Mem=287042kb Clients=0 Down=0kb/s (0MB) Up=0kb/s (0MB) In=0pck/s (0K) Out=0pck/s (0K) Pool=24/25(1) IOCP=1000/1000(1) RegionTime1=9t/s (1604) CPU=2.8% DOL=2.6%
10:23:02,093 - [2772] - INFO - DOL.GS.GameEvents.StatPrint - -stats- Mem=286820kb Clients=0 Down=0kb/s (0MB) Up=0kb/s (0MB) In=0pck/s (0K) Out=0pck/s (0K) Pool=24/25(1) IOCP=1000/1000(1) RegionTime1=4t/s (1572) CPU=14.5% DOL=0.1%

Not too sure myself :(

PostPosted: Mon Sep 24, 2007 4:40 pm
by brink668
Make sure your database has INNOB ENABLED or it wont work.

PostPosted: Mon Sep 24, 2007 5:00 pm
by Overdriven
Make sure your database has INNOB ENABLED or it wont work.
MyiSAM works perfectly well..

PostPosted: Mon Sep 24, 2007 5:31 pm
by daedilus
How abouts would I check that out?

I reran the MYSQL wizard and it confirms that InnoDB and MYiSAM are utilized, do I have to turn on an option in a config file or anything?

**edit**

I noticed while checking out the MYSQL set up that it runs on port 3306, would I have to do something to that port by chance?

PostPosted: Mon Sep 24, 2007 6:44 pm
by Overdriven
How abouts would I check that out?

I reran the MYSQL wizard and it confirms that InnoDB and MYiSAM are utilized, do I have to turn on an option in a config file or anything?

**edit**

I noticed while checking out the MYSQL set up that it runs on port 3306, would I have to do something to that port by chance?
No and No. 3306 is the standard MySQL port and nothing else runs on it. (It can be changed, but there's no point) Also, MyISam and InnoDB are just table types. InnoDB is the faster of the two but on a database for DOL doens't make a difference.


Usually go LD if you run the client and server on the same machine, unless the client is on uberlow settings.

PostPosted: Mon Sep 24, 2007 6:48 pm
by Tolakram
No. I run my MySQL Server on a non-default port too. Any MySql server connection issues would show up on both machines.

10:20:35,656 - [3632] - INFO - DOL.BaseServer - Incoming connection from 192.168.1.101:3999


port 3999?


DOL.GS.PacketHandler.Client.v168.LoginRequestHandler

You could try putting log statements here to see exactly when the connection fails. You can also make sure it knows what client version you are.



INFO - DOL.GS.GameEvents.StatPrint - -stats- Mem=286820kb Clients=0 Down=0kb/s (0MB) Up=0kb/s (0MB) In=0pck/s (0K) Out=0pck/s (0K) Pool=24/25(1) IOCP=1000/1000(1) RegionTime1=4t/s (1572) CPU=14.5% DOL=0.1%

The CPU usage seems high, in two of the prints it was 14% or above. I don't think this is an issue, but as a last resort can you identify what might be running on the server that is loading the cpu? It's possible that the client will give up on the connection if no response is given.