Connection Difficulties

Support for the latest build of L2J Server, get help here with installations, upgrades, problems.
Do not post bugs reports here, use viewforum.php?f=77 instead.
There is no support for other server builds than the official provided by l2jserver.com
Forum rules
READ NOW: L2j Forums Rules of Conduct
Post Reply
2Shea
Posts: 3
Joined: Wed Jun 22, 2011 10:45 pm

Connection Difficulties

Post by 2Shea »

If you want to receive support we need this info to help you properly.
» Find Revision
L2J Revision 4682:
L2JDP Revision 8074:

I know a lot of people run into connection problems, believe me I've looked through every thread here on the forum concerning it, but honestly every solution that has been poised hasn't solved the problem that I'm currently having with my server.

I have looked over every thread, every guide, turned off all firewalls, opened all ports, even connected my computer directly to my modem so there would be no chance of my router blocking it.

I am running a fresh install of Windows 7 Ultimate, with no other software installed besides the actual L2 Client. My windows firewall is turned off, and I have no antivirus program or any other sort of program that would have a firewall.

I can connect to my server on the local network just fine, but others trying to connect get stuck at login after they enter their id and password. Their hosts files are correct, and this is not a client problem.

Here are the properties files for my Login server, Game server, and the ipconfig.xml :

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# --------------------------------------------------------------------------- # Where's the Login server this gameserver should connect to# WARNING: <u><b><font color="red">Please don't change default IPs here if you don't know what are you doing!</font></b></u># WARNING: <u><b><font color="red">External/Internal IPs are now inside "ipconfig.xml" file.</font></b></u># Default: 127.0.0.1LoginHost = 127.0.0.1 # 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.# WARNING: <u><b><font color="red">Please don't change default IPs here if you don't know what are you doing!</font></b></u># WARNING: <u><b><font color="red">External/Internal IPs are now inside "ipconfig.xml" file.</font></b></u># Default: * (0.0.0.0)GameserverHostname = 127.0.0.1 # 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/l2jgs (default)# URL = jdbc:hsqldb:hsql://localhost/l2jgs# URL = jdbc:sqlserver://localhost/database = l2jgs/user = sa/password = URL = jdbc:mysql://localhost/l2jgs# Database user info (default is "root" but it's not recommended)Login = root# Database connection passwordPassword = root # 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 = False # 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

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# WARNING: <u><b><font color="red">Please don't change default IPs here if you don't know what are you doing!</font></b></u># WARNING: <u><b><font color="red">External/Internal IPs are now inside "ipconfig.xml" file.</font></b></u># Default: * (0.0.0.0)LoginserverHostname = 127.0.0.1 # Default: 2106LoginserverPort = 2106 # The address on which login will listen for GameServers, use * to bind on all available IPs# WARNING: <u><b><font color="red">Please don't change default IPs here if you don't know what are you doing!</font></b></u># WARNING: <u><b><font color="red">External/Internal IPs are now inside "ipconfig.xml" file.</font></b></u># Default: * (0.0.0.0)LoginHostname = * # The port on which login will listen for GameServers# Default: 9014LoginPort = 9014  # ---------------------------------------------------------------------------# 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 # Flood Protection. All values are in MILISECONDS.# Default: TrueEnableFloodProtection = True # Default: 15FastConnectionLimit = 15 # Default: 700NormalConnectionTime = 700 # 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/l2jls (default)# URL = jdbc:hsqldb:hsql://localhost/l2jls# URL = jdbc:sqlserver://localhost/database = l2jls/user = sa/password = URL = jdbc:mysql://localhost/l2jls# Database user info (default is "root" but it's not recommended)Login = root# Database connection passwordPassword = root # Default: 10MaximumDbConnections = 10 # Default: 0MaximumDbIdleTime = 0  # ---------------------------------------------------------------------------# Misc.# ---------------------------------------------------------------------------# If False, the license (after the login) will not be shown.# Default: TrueShowLicence = True # Default: TrueAutoCreateAccounts = True  # ---------------------------------------------------------------------------# Developer Settings# ---------------------------------------------------------------------------# Default: FalseDebug = False

Code: Select all

<?xml version="1.0" encoding="UTF-8"?><!-- Externalhost here (Internet IP) or Localhost IP for local test --><gameserver address="24.159.40.113" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="ipconfig.xsd">    <!-- Localhost here -->    <define subnet="127.0.0.0/8" address="127.0.0.1" />    <!-- Internalhosts here (LANs IPs) -->    <define subnet="10.0.0.0/8" address="10.0.0.0" />    <define subnet="172.16.0.0/19" address="172.16.0.0" />    <define subnet="192.168.0.0/16" address="24.159.40.1" /></gameserver>
The login and game servers are running fine, I've had no problems with them. I just cannot seem to make it possible for people to connect. Any assistance would be MUCH appreciated. Thanks.
User avatar
tukune
Posts: 533
Joined: Sun Mar 29, 2009 2:35 pm
Location: Japan

Re: Connection Difficulties

Post by tukune »

Can you read this?

Code: Select all

# WARNING: <u><b><font color="red">Please don't change default IPs here if you don't know what are you doing!</font></b></u>
User avatar
tukune
Posts: 533
Joined: Sun Mar 29, 2009 2:35 pm
Location: Japan

Re: Connection Difficulties

Post by tukune »

<?xml version="1.0" encoding="UTF-8"?>
<!-- Externalhost here (Internet IP) or Localhost IP for local test -->
<gameserver address="24.159.40.113" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="ipconfig.xsd">
<!-- Localhost here -->
<define subnet="127.0.0.0/8" address="127.0.0.1" />
<!-- Internalhosts here (LANs IPs) -->
<define subnet="10.0.0.0/8" address="10.0.0.0" />
<define subnet="172.16.0.0/19" address="172.16.0.0" />
<define subnet="192.168.0.0/16" address="24.159.40.1" /> :evil: What is this???
</gameserver>

Read this
http://en.wikipedia.org/wiki/Private_network
2Shea
Posts: 3
Joined: Wed Jun 22, 2011 10:45 pm

Re: Connection Difficulties

Post by 2Shea »

On that one there, I read on other people's threads that it should be changed to your IPV6 #, and that's what that number was.

As far as the other ones go, I left pretty much everything default, but still no luck. I may try again with a fresh start, but I'm fairly sure that it won't fix the problem.
User avatar
jurchiks
Posts: 6769
Joined: Sat Sep 19, 2009 4:16 pm
Location: Eastern Europe

Re: Connection Difficulties

Post by jurchiks »

There are no IPv6 in that file, it should be obvious. All of those IPs are IPv4.
Do you have any subnets (192.168.xxx.xxx)? If not, leave it at default value.
Also, how are those other people connecting? l2.ini/hosts? what IP are they putting there?
If you have problems, FIRST TRY SOLVING THEM YOURSELF, and if you get errors, TRY TO ANALYZE THEM, and ONLY if you can't help it, THEN ask here.
Otherwise you will never learn anything if all you do is copy-paste!
Discussion breeds innovation.
2Shea
Posts: 3
Joined: Wed Jun 22, 2011 10:45 pm

Re: Connection Difficulties

Post by 2Shea »

Ooh okay, sorry I had really gotten confused with the IPv6 and IPv4 thing.

So I should just leave it at the default value? I'll give it a shot like that.

The people who have been trying to connect are using a hosts file and they're putting the following:

Code: Select all

24.159.40.113 L2authd.lineage2.com
Just my external IP, which should be fine if what I've read is correct.

I do apologize, I've done dev work on L2J before, but never had to do the network setup on my own. I really appreciate all of your help.
User avatar
jurchiks
Posts: 6769
Joined: Sat Sep 19, 2009 4:16 pm
Location: Eastern Europe

Re: Connection Difficulties

Post by jurchiks »

If you don't have any subnets then that's it, yes.
Though they should be able to connect already.
Have you, by any chance, changed any IPs in (login)server.properties? Because if you have - revert those changes.
If you have problems, FIRST TRY SOLVING THEM YOURSELF, and if you get errors, TRY TO ANALYZE THEM, and ONLY if you can't help it, THEN ask here.
Otherwise you will never learn anything if all you do is copy-paste!
Discussion breeds innovation.
Post Reply