Page 1 of 1

can not resolve hostname

Posted: Thu Jul 05, 2012 1:30 pm
by kurasa
If you want to receive support we need this info to help you properly.
» Find Revision
L2J Revision Number: 5462
L2JDP Revision Number: 8952

Hello everybody,
I'm trying to set up a local server to test some things, nothing special, but when i try to log in, after putting account and password I get the error "can not resolve hostname"... I haven't changed anything special, didn't modify client nor anything else that ipconfig, loginserver.properties, server.properties...

now, these are my files:

loginserver.properties

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 = * # 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: 5LoginTryBeforeBan = 5 # Time you won't be able to login back again after LoginTryBeforeBan tries to login.# Default: 900 (15 minutes)LoginBlockAfterBan = 900 # 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 = ****** # Default: 10MaximumDbConnections = 10 # Default: 0MaximumDbIdleTime = 0  # ---------------------------------------------------------------------------# Misc.# ---------------------------------------------------------------------------# If False, the license (after the login) will not be shown.# Default: TrueShowLicence = True # Default: TrueAutoCreateAccounts = 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  # ---------------------------------------------------------------------------# Developer Settings# ---------------------------------------------------------------------------# Default: FalseDebug = False # ---------------------------------------------------------------------------# Restart LS every 24 hours?# ---------------------------------------------------------------------------# Default: False, 24LoginRestartSchedule = FalseLoginRestartTime = 24
This is the server.properties:

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 = * # 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 = ****** # 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.# WARNING: <u><b><font color="red">If the specified path is invalid, it will lead to multiple errors!</font></b></u>#Default: .DatapackRoot = . # 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: 267;268;271;273AllowedProtocolRevisions = 267;268;271;273  # ---------------------------------------------------------------------------# 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 = .* # This setting restricts clan/subpledge names players can set.# See CnameTemplate for detailsClanNameTemplate = .* # Maximum number of characters per account.# Default: 7 (client limit)CharMaxNumber = 7
ipconfig.xml

Code: Select all

<?xml version="1.0" encoding="UTF-8"?><!-- Externalhost here (Internet IP) or Localhost IP for local test --><gameserver address="127.0.0.1" 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="192.168.0.0" /></gameserver>
hosts

Code: Select all

# 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       localhost#   ::1             localhost127.0.0.1       localhost
The problem is, that I can't find a clean system... I tried with one I had but this is the result...

thanks in advance,
Devid

Re: can not resolve hostname

Posted: Thu Jul 05, 2012 3:09 pm
by nonom
kurasa wrote:The problem is, that I can't find a clean system... I tried with one I had but this is the result..
It could be customized and we won't support that.

Googling a bit will not difficult to find a clean one ;)

Re: can not resolve hostname

Posted: Thu Jul 05, 2012 3:18 pm
by kurasa
nonom wrote:
kurasa wrote:The problem is, that I can't find a clean system... I tried with one I had but this is the result..
It could be customized and we won't support that.

Googling a bit will not difficult to find a clean one ;)
now I found a clean one and when I log in it says "incorrect account/pswd", which, I presume, means it's connected to another server... this thing's driving me crazy...

EDIT: got to login and tells me I have a different protocol :S can anyone send me a system with 267+ protocol? I already have Hi5 client, but my system got messy

Re: can not resolve hostname

Posted: Tue Jul 10, 2012 11:05 pm
by drgnj
Yes plz i need one too... i have the same prob.. i have 1 system incorect protocol and other login to other server :(

Re: can not resolve hostname

Posted: Tue Jul 10, 2012 11:30 pm
by UnAfraid
Add in hosts file

Code: Select all

127.0.0.1 L2AuthD.Lineage2.com

Re: can not resolve hostname

Posted: Tue Jul 10, 2012 11:43 pm
by drgnj
not working.. i get again error for different version protocol..

Re: can not resolve hostname

Posted: Wed Jul 11, 2012 4:28 pm
by kurasa
I had to change system...

Re: can not resolve hostname

Posted: Wed Jul 11, 2012 9:03 pm
by drgnj
kurasa wrote:I had to change system...
+1 :)

Re: can not resolve hostname

Posted: Tue Jan 15, 2013 8:07 pm
by Arang
UnAfraid wrote:Add in hosts file

Code: Select all

127.0.0.1 L2AuthD.Lineage2.com
That's the only way you can do it without modifying client
kurasa wrote:The problem is, that I can't find a clean system... I tried with one I had but this is the result...
How did you install the client??? You have "clean" system after installing it :P

Don't say "I can't find "clean" installation of the client" because it is available for download as I post this, on gamershell

Re: can not resolve hostname

Posted: Wed Jan 16, 2013 12:41 am
by l2battle
maybe i cant help the topic starter ... but... how can you start the game from a clean system???

there is not a l2.exe file???

Re: can not resolve hostname

Posted: Wed Jan 16, 2013 9:23 am
by Arang
l2battle wrote:maybe i cant help the topic starter ... but... how can you start the game from a clean system???

there is not a l2.exe file???
L2.bin = L2.exe

Re: can not resolve hostname

Posted: Wed Jan 16, 2013 8:29 pm
by MELERIX
l2battle wrote:how can you start the game from a clean system???
using a .bat or .cmd file with a code like this:

Code: Select all

@echo offstart l2.binexit

Re: can not resolve hostname

Posted: Fri Jan 18, 2013 9:00 am
by l2battle
MELERIX wrote:
l2battle wrote:how can you start the game from a clean system???
using a .bat or .cmd file with a code like this:

Code: Select all

@echo offstart l2.binexit
thank you for info, as i understand this is the only legal way to run the game