Page 1 of 1

SOLVED: Connectin lost:socket closed

Posted: Sat Apr 09, 2011 8:09 pm
by smuggbg
L2J Revision 4497:
L2JDP Revision 7780:

Hi ppl,I am running a LS&GS on my PC behind a router which I installed a few days ago.Before that I had no problems at all,but now whit this router I have the folowing problem after a 45-60min uptime :

from LS

Code: Select all

GameServer (87.97.154.201): Connection lost: socket closedGameServer (87.97.154.201): Connection lost: socket closedGameServer (87.97.154.201): Connection lost: socket closedGameServer (87.97.154.201): Connection lost: socket closedGameServer (87.97.154.201): Connection lost: socket closedGameServer (87.97.154.201): Connection lost: socket closedGameServer (87.97.154.201): Connection lost: socket closedGameServer (87.97.154.201): Connection lost: socket closedGameServer (87.97.154.201): Connection lost: socket closedGameServer (87.97.154.201): Connection lost: socket closedGameServer (87.97.154.201): Connection lost: socket closedGameServer (87.97.154.201): Connection lost: socket closedGameServer (87.97.154.201): Connection lost: socket closedGameServer (87.97.154.201): Connection lost: socket closedGameServer (87.97.154.201): Connection lost: socket closedGameServer (87.97.154.201): Connection lost: socket closedGameServer (87.97.154.201): Connection lost: socket closedGameServer (87.97.154.201): Connection lost: socket closedGameServer (87.97.154.201): Connection lost: socket closedGameServer (87.97.154.201): Connection lost: socket closedGameServer (87.97.154.201): Connection lost: socket closedGameServer (87.97.154.201): Connection lost: socket closedGameServer (87.97.154.201): Connection lost: socket closedIncorrect packet checksum, closing connection (LS) 
from GS:

Code: Select all

Connecting to login on 87.97.154.201:9014Damn! Registeration Failed: Reason: already logged inConnecting to login on 87.97.154.201:9014Damn! Registeration Failed: Reason: already logged inConnecting to login on 87.97.154.201:9014Damn! Registeration Failed: Reason: already logged inConnecting to login on 87.97.154.201:9014Damn! Registeration Failed: Reason: already logged inConnecting to login on 87.97.154.201:9014Damn! Registeration Failed: Reason: already logged inConnecting to login on 87.97.154.201:9014Damn! Registeration Failed: Reason: already logged inConnecting to login on 87.97.154.201:9014Damn! Registeration Failed: Reason: already logged inConnecting to login on 87.97.154.201:9014Damn! Registeration Failed: Reason: already logged inConnecting to login on 87.97.154.201:9014Damn! Registeration Failed: Reason: already logged inConnecting to login on 87.97.154.201:9014Damn! Registeration Failed: Reason: already logged inConnecting to login on 87.97.154.201:9014Damn! Registeration Failed: Reason: already logged in
I changed the IP update time to 2880min(48hrs) but this is a temp solution only as I want to set this server as stand alone!!!I already set the GS RR but I cant find a guide for LS auto restart.

I will be verry greatfull if someone link a tool for a LS auto restart ot explain how this be done manual.

Thanks in advance!

Re: Connectin lost:socket closed

Posted: Sun Apr 10, 2011 12:25 am
by hope
post configs for ls and gs and also ipconfig.xml

Re: Connectin lost:socket closed

Posted: Sun Apr 10, 2011 12:46 am
by smuggbg
hope wrote:post configs for ls and gs and also ipconfig.xml
ls config

Code: Select all

# ---------------------------------------------------------------------------# Login Server Settings# ---------------------------------------------------------------------------# This is the server configuration file. Here you can set up the connection information for your server.# This was written with the assumption that you are behind a router.# Dumbed Down Definitions...# LAN (LOCAL area network) - typically consists of computers connected to the same router as you.# WAN (WIDE area network) - typically consists of computers OUTSIDE of your router (ie. the internet).# x.x.x.x - Format of an IP address. Do not include the x'es into settings. Must be real numbers.# ---------------------------------------------------------------------------# Networking# --------------------------------------------------------------------------- # Bind ip of the LoginServer, use * to bind on all available IPs# Default: *LoginserverHostname = * # Default: 2106LoginserverPort = 2106 # The address on which login will listen for GameServers, use * to bind on all available IPs# Default: *LoginHostname = * # The port on which login will listen for GameServers# Default: 9014LoginPort = 9014 # The delay in minutes after which the login updates the gameservers IP's (usefull when their ip is dynamic)# Default: 15IpUpdateTime = 2880 # ---------------------------------------------------------------------------# Security# ---------------------------------------------------------------------------# Default: TrueLogLoginController = True # How many times you can provide an invalid account/pass before the IP gets banned.# Default: 10LoginTryBeforeBan = 10 # Time you won't be able to login back again after LoginTryBeforeBan tries to login.# Default: 600 (10 minutes)LoginBlockAfterBan = 600 # If set to True any GameServer can register on your login's free slots# Default: FalseAcceptNewGameServer = False # Enforce GameGuard authorization from client?# If True, login server will kick client if the client bypassed GameGuard authentication.# Default: FalseForceGGAuth = False # Flood Protection. All values are in MILISECONDS.# Default: TrueEnableFloodProtection = True # Default: 15FastConnectionLimit = 15 # Default: 700NormalConnectionTime = 2880 # Default: 350FastConnectionTime = 350 # Default: 50MaxConnectionPerIP = 50 # ---------------------------------------------------------------------------# Database# ---------------------------------------------------------------------------# Specify the appropriate driver and url for the database you're using.# Examples:# Driver = com.mysql.jdbc.Driver (default)# Driver = org.hsqldb.jdbcDriver# Driver = com.microsoft.sqlserver.jdbc.SQLServerDriverDriver = com.mysql.jdbc.Driver # Database URL# URL = jdbc:mysql://localhost/l2jdb (default)# URL = jdbc:hsqldb:hsql://localhost/l2jdb# URL = jdbc:sqlserver://localhost/database = l2jdb/user = sa/password =URL = jdbc:mysql://localhost/l2jdb # Database user info (default is "root" but it's not recommended)Login = root # Database connection passwordPassword = Password # Default: 10MaximumDbConnections = 10 # Default: 0MaximumDbIdleTime = 0 # ---------------------------------------------------------------------------# Misc.# ---------------------------------------------------------------------------# If False, the license (after the login) will not be shown.# Default: TrueShowLicence = False # Default: TrueAutoCreateAccounts = True # ---------------------------------------------------------------------------# Developer Settings# ---------------------------------------------------------------------------# Default: FalseDebug = False # Default: FalseAssert = False # Default: FalseDeveloper = False  
GS config

Code: Select all

# ---------------------------------------------------------------------------# Game Server Settings# ---------------------------------------------------------------------------# This is the server configuration file. Here you can set up the connection information for your server.# This was written with the assumption that you are behind a router.# Dumbed Down Definitions...# LAN (LOCAL area network) - typically consists of computers connected to the same router as you.# WAN (WIDE area network) - typically consists of computers OUTSIDE of your router (ie. the internet).# x.x.x.x - Format of an IP address. Do not include the x'es into settings. Must be real numbers.# ---------------------------------------------------------------------------# Networking# ---------------------------------------------------------------------------## Note: External/Internal address definitions was moved to the ipconfig.xml# # Where's the Login server this gameserver should connect to# Default: 127.0.0.1LoginHost = 87.97.154.201 # TCP port the login server listen to for gameserver connection requests# Default: 9014LoginPort = 9014 # Bind address for gameserver. You should not need to change it in most cases.# Default: * (0.0.0.0)GameserverHostname = * # Default: 7777GameserverPort = 7777 # ---------------------------------------------------------------------------# Database# ---------------------------------------------------------------------------# Specify the appropriate driver and url for the database you're using.# Examples:# Driver = com.mysql.jdbc.Driver (default)# Driver = org.hsqldb.jdbcDriver# Driver = com.microsoft.sqlserver.jdbc.SQLServerDriverDriver = com.mysql.jdbc.Driver # Database URL# URL = jdbc:mysql://localhost/l2jdb (default)# URL = jdbc:hsqldb:hsql://localhost/l2jdb# URL = jdbc:sqlserver://localhost/database = l2jdb/user = sa/password =URL = jdbc:mysql://localhost/l2jdb # Database user info (default is "root" but it's not recommended)Login = root # Database connection passwordPassword = Password # Default: 100MaximumDbConnections = 100 # Default: 0MaximumDbIdleTime = 0 # ---------------------------------------------------------------------------# Misc Server Settings# ---------------------------------------------------------------------------# This is the server ID that the Game Server will request.# Example: 1 = Bartz# Default: 1RequestServerID = 1 # True = The Login Server will give an other ID to the server if the requested ID is already reserved.# Default: TrueAcceptAlternateID = True # Datapack root directory.# Defaults to current directory from which the server is started unless the below line is uncommented.#DatapackRoot = C:/Work/tmp/DataPack # Define how many players are allowed to play simultaneously on your server.# Default: 100MaximumOnlineUsers = 100 # Numbers of protocol revisions that server allows to connect.# Delimiter is ;# WARNING: <u><b><font color="red">Changing the protocol revision may result in incompatible communication and many errors in game!</font></b></u># Default: 216AllowedProtocolRevisions = 216 # ---------------------------------------------------------------------------# Misc Player Settings# --------------------------------------------------------------------------- # Character name template.# Examples:# CnameTemplate = [A-Z][a-z]{3,3}[A-Za-z0-9]*# The above setting will allow names with first capital letter, next three small letters,# and any letter (case insensitive) or number, like OmfgWTF1# CnameTemplate = [A-Z][a-z]*# The above setting will allow names only of letters with first one capital, like Omfgwtf# Default .* (allows any symbol)CnameTemplate = .* # This setting restricts names players can give to their pets.# See CnameTemplate for detailsPetNameTemplate = .* # Maximum number of characters per account.# Default: 7 (client limit)CharMaxNumber = 7  
IP config

Code: Select all

<?xml version="1.0" encoding="UTF-8"?><gameserver address="87.97.154.201"><define subnet="127.0.0.0/8" address="127.0.0.1" /><define subnet="192.168.0.0/16" address="192.168.1.100" /></gameserver>   
the IP update time set to 2880 is not helping :?

Re: Connectin lost:socket closed

Posted: Sun Apr 10, 2011 3:29 am
by hope
put configs back to default and update ipconfig to latest

this is what i would say that is making the problems for you
# Where's the Login server this gameserver should connect to
# Default: 127.0.0.1
LoginHost = 87.97.154.201

should be
# Where's the Login server this gameserver should connect to
# Default: 127.0.0.1
LoginHost = 127.0.0.1

all you need to do is update the ipconfig.xml to latest and only edit the ipconfig.xml

IpUpdateTime = 2880
should be
IpUpdateTime = 15

NormalConnectionTime = 2880
should be
NormalConnectionTime = 700

Re: Connectin lost:socket closed

Posted: Sun Apr 10, 2011 10:48 am
by smuggbg
what you mean?!?!there is a newer ipconfig.xml file?!?

Re: Connectin lost:socket closed

Posted: Sun Apr 10, 2011 1:06 pm
by hope
just update to the latest version

Re: Connectin lost:socket closed

Posted: Sun Apr 10, 2011 2:40 pm
by smuggbg
done as advised - everything is working fine! how to make a LS auto restart?!?

Re: Connectin lost:socket closed

Posted: Sun Apr 10, 2011 3:02 pm
by hope
smuggbg wrote:done as advised - everything is working fine! how to make a LS auto restart?!?
have you tried searching or making a new topic asking see if any will make a script for you

Re: Connectin lost:socket closed

Posted: Sun Apr 10, 2011 3:17 pm
by smuggbg
I google it and check in several forums,but I found only for a GS auto rr...I also found one post in this forum but it was from 2007 and I am not sure is it working for freya

Re: Connectin lost:socket closed

Posted: Sun Apr 10, 2011 3:46 pm
by hope
post link to that topic

Re: Connectin lost:socket closed

Posted: Sun Apr 10, 2011 4:30 pm
by smuggbg

Re: Connectin lost:socket closed

Posted: Sun Apr 10, 2011 4:41 pm
by hope
u could try it i dont see it working but you need to test. Might be better to have a script or something like that

Re: Connectin lost:socket closed

Posted: Sun Apr 10, 2011 7:28 pm
by smuggbg
tested...not working :roll:

Re: Connectin lost:socket closed

Posted: Sun Apr 10, 2011 7:32 pm
by hope
smuggbg wrote:tested...not working :roll:
make a new post see if someone will make you a script or something

Re: Connectin lost:socket closed

Posted: Sun Apr 10, 2011 7:37 pm
by smuggbg
hope wrote:
smuggbg wrote:tested...not working :roll:
make a new post see if someone will make you a script or something
done,thanks for your help 8)