Problem to start l2

Have you created a useful tool? or Do you want to get help building one? This is the right place!
Forum rules
READ NOW: L2j Forums Rules of Conduct
Post Reply
skizzo96
Posts: 2
Joined: Mon Apr 18, 2016 6:20 pm

Problem to start l2

Post by skizzo96 »

hi guys , i have some problem to start l2 server ( online)
i can start it in the localhost without problem , but when i put my WAN ip me and my friend can't enter , here is all my config
  • # ---------------------------------------------------------------------------
    # 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.1
    LoginHost = 192.168.1.3

    # TCP port the login server listen to for gameserver connection requests
    # Default: 9014
    LoginPort = 9014

    # Bind address for gameserver. You should not need to change it in most cases.
    # Default: * (0.0.0.0)
    GameserverHostname = 192.168.1.3

    # Default: 7777
    GameserverPort = 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.SQLServerDriver
    Driver = 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 password
    Password = 123456
    # Default: 100
    MaximumDbConnections = 100

    # Default: 0
    MaximumDbIdleTime = 0

    # ---------------------------------------------------------------------------
    # Misc Server Settings
    # ---------------------------------------------------------------------------
    # This is the server ID that the Game Server will request.
    # Example: 1 = Bartz
    # Default: 1
    RequestServerID = 1

    # True = The Login Server will give an other ID to the server if the requested ID is already reserved.
    # Default: True
    AcceptAlternateID = 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: 100
    MaximumOnlineUsers = 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: 216
    AllowedProtocolRevisions = 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 details
    PetNameTemplate = .*

    # Maximum number of characters per account.
    # Default: 7 (client limit)
    CharMaxNumber = 7


  • # ---------------------------------------------------------------------------
    # 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 = 192.168.1.3

    # Default: 2106
    LoginserverPort = 2106

    # The address on which login will listen for GameServers, use * to bind on all available IPs
    # Default: *
    LoginHostname = 192.168.1.3

    # The port on which login will listen for GameServers
    # Default: 9014
    LoginPort = 9014

    # The delay in minutes after which the login updates the gameservers IP's (usefull when their ip is dynamic)
    # Default: 15
    IpUpdateTime = 15


    # ---------------------------------------------------------------------------
    # Security
    # ---------------------------------------------------------------------------
    # Default: True
    LogLoginController = True

    # How many times you can provide an invalid account/pass before the IP gets banned.
    # Default: 10
    LoginTryBeforeBan = 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: False
    AcceptNewGameServer = True

    # Enforce GameGuard authorization from client?
    # If True, login server will kick client if the client bypassed GameGuard authentication.
    # Default: False
    ForceGGAuth = False

    # Flood Protection. All values are in MILISECONDS.
    # Default: True
    EnableFloodProtection = True

    # Default: 15
    FastConnectionLimit = 15

    # Default: 700
    NormalConnectionTime = 700

    # Default: 350
    FastConnectionTime = 350

    # Default: 50
    MaxConnectionPerIP = 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.SQLServerDriver
    Driver = 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 password
    Password = 56789

    # Default: 10
    MaximumDbConnections = 10

    # Default: 0
    MaximumDbIdleTime = 0


    # ---------------------------------------------------------------------------
    # Misc.
    # ---------------------------------------------------------------------------
    # If False, the license (after the login) will not be shown.
    # Default: True
    ShowLicence = True

    # Default: True
    AutoCreateAccounts = True


    # ---------------------------------------------------------------------------
    # Developer Settings
    # ---------------------------------------------------------------------------
    # Default: False
    Debug = False

    # Default: False
    Assert = False

    # Default: False
    Developer = False


  • # Copyright (c) 1993-2009 Microsoft Corp.
    #
    # This is a sample HOSTS file used by Microsoft TCP/IP for Windows.
    #
    # This file contains the mappings of IP addresses to host names. Each
    # entry should be kept on an individual line. The IP address should
    # be placed in the first column followed by the corresponding host name.
    # The IP address and the host name should be separated by at least one
    # space.
    #
    # Additionally, comments (such as these) may be inserted on individual
    # lines or following the machine name denoted by a '#' symbol.
    #
    # For example:
    #
    # 102.54.94.97 rhino.acme.com # source server
    # 38.25.63.10 x.acme.com # x client host

    # localhost name resolution is handled within DNS itself.
    # 127.0.0.1 L2authd.Lineage2.com
    # 127.0.0.1 localhost
    # 151.67.14.133 L2authd.Lineage2.com

  • <?xml version="1.0" encoding="UTF-8"?>

    <!-- Note: If file is named "ipconfig.xml" this data will be used as network configuration, otherwise server will configure it automatically! -->

    <!-- Externalhost here (Internet IP) or Localhost IP for local test -->

    -<gameserver xsi:noNamespaceSchemaLocation="../data/xsd/ipconfig.xsd" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" address="151.67.14.133">

    <!-- Localhost here -->


    <define address="127.0.0.1" subnet="127.0.0.0/8"/>

    <!-- Internalhosts here (LANs IPs) -->


    <define address="10.0.0.0" subnet="10.0.0.0/8"/>

    <define address="172.16.0.0" subnet="172.16.0.0/19"/>

    <define address="192.168.1.3" subnet="192.168.0.0/16"/>

    </gameserver>



ty for helping
Sacrifice
Advanced User
Advanced User
Posts: 1026
Joined: Thu Aug 14, 2014 6:31 am

Re: Problem to start l2

Post by Sacrifice »

Open ports 7777TCP, 2106TCP in firewall of windon and also in router, same ports and redirect to your machine IP (where you're starting login and gameserver)
Sacrifice
Advanced User
Advanced User
Posts: 1026
Joined: Thu Aug 14, 2014 6:31 am

Re: Problem to start l2

Post by Sacrifice »

And change this line..

<define address="192.168.1.3" subnet="192.168.0.0/16"/>

to

<define address="192.168.1.3" subnet="192.168.1.0/24"/>
User avatar
UnAfraid
L2j Veteran
L2j Veteran
Posts: 4199
Joined: Mon Jul 23, 2007 4:25 pm
Location: Bulgaria
Contact:

Re: Problem to start l2

Post by UnAfraid »

Sacrifice wrote:And change this line..

<define address="192.168.1.3" subnet="192.168.0.0/16"/>

to

<define address="192.168.1.3" subnet="192.168.1.0/24"/>
That wouldn't change much.
Image
Sacrifice
Advanced User
Advanced User
Posts: 1026
Joined: Thu Aug 14, 2014 6:31 am

Re: Problem to start l2

Post by Sacrifice »

UnAfraid wrote:
Sacrifice wrote:And change this line..

<define address="192.168.1.3" subnet="192.168.0.0/16"/>

to

<define address="192.168.1.3" subnet="192.168.1.0/24"/>
That wouldn't change much.
If router are in 255.255.255.0 netmask... yes :)
User avatar
Origami
Posts: 21
Joined: Mon May 18, 2009 5:54 pm
Location: Moscow/Russia

Re: Problem to start l2

Post by Origami »

Sacrifice wrote:
UnAfraid wrote:
Sacrifice wrote:And change this line..

<define address="192.168.1.3" subnet="192.168.0.0/16"/>

to

<define address="192.168.1.3" subnet="192.168.1.0/24"/>
That wouldn't change much.
If router are in 255.255.255.0 netmask... yes :)
Nope. In this case it wouldn't :eh:

@topicstarter:
Basic principles (Supposing that you have only one network at home and it operates in 192.168.1.0/24 address space and the PC running server has IP 192.168.1.3 - ordinary homenet config)
1. Ensure you have allowed incoming connections from outside on the PC running server to TCP/2106 and TCP/7777 to everybody
2. Set up port redirection on your router from WANIP:2106 to SERVERIP:2106 for login server and WANIP:7777 to SERVERIP:7777 for game server (as @Sacrifice mentioned above). According to the configs you've provided the redirection would looke like this: 151.67.14.133:2106 --> 192.168.1.3:2106, 151.67.14.133:7777 --> 192.168.1.3:7777

Tricks:
1. Some routers block traffic from LAN to its WAN IP. In this case LAN users would have to use internal IP (192.168.1.3).

Diagnostics (Windows):
After starting LS & GS open command prompt (that suspicious black window 8) ) and type:
netstat -a -n | find "7777"
This will show you which address is in use by your GS

netstat -a -n | find "2106"
This will show you which address is in use by your LS.

According to your configs you should see 192.168.1.3:XXXX in the both cases (XXXX = 2106 or 7777 respectively).

Fix your ipconfig.xml (syntax error that may prevent the server to parse this file)
The line:
-<gameserver xsi:noNamespaceSchemaLocation="../data/xsd/ipconfig.xsd" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" address="151.67.14.133">
has invalid symbol in the 1st position (red minus). Remove it.
Месть - это блюдо, которое подают в тапки...
Sacrifice
Advanced User
Advanced User
Posts: 1026
Joined: Thu Aug 14, 2014 6:31 am

Re: Problem to start l2

Post by Sacrifice »

:lol: :lol: :clap:
skizzo96
Posts: 2
Joined: Mon Apr 18, 2016 6:20 pm

Re: Problem to start l2

Post by skizzo96 »

[img]
www.PNG
[/img]
ok guys i try to fix the problem about windows firewaal , and i open port 7777 tcp and 2106 tcp , same for router , but nothing .
i done a screen of my ls and gs but i think is all ok .
i think the problem is about my client of l2 ( the system ) . i edit l2.ini and the ip server is : l2authd..... is correct , but nothing i can't connect . any idea ?
You do not have the required permissions to view the files attached to this post.
Sacrifice
Advanced User
Advanced User
Posts: 1026
Joined: Thu Aug 14, 2014 6:31 am

Re: Problem to start l2

Post by Sacrifice »

Nots allowed by inner circle talk about client modifications. To do live server require client modification in l2.ini or host modification, and nots allowed here.

Your server is ok. Just only need to do a client modification... I cant talk with you more at respect.
Sacrifice
Advanced User
Advanced User
Posts: 1026
Joined: Thu Aug 14, 2014 6:31 am

Re: Problem to start l2

Post by Sacrifice »

skizzo96 wrote:[img]
http://www.PNG
[/img]
ok guys i try to fix the problem about windows firewaal , and i open port 7777 tcp and 2106 tcp , same for router , but nothing .
i done a screen of my ls and gs but i think is all ok .
i think the problem is about my client of l2 ( the system ) . i edit l2.ini and the ip server is : l2authd..... is correct , but nothing i can't connect . any idea ?
And... seeing more in detail... you have some problems with loginserver "missing properties" and gameserver "missing properties" also and failures in java installation...
Post Reply