can not resolve hostname

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
kurasa
Posts: 4
Joined: Sun Jun 17, 2012 1:55 pm

can not resolve hostname

Post 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
User avatar
nonom
L2j Veteran
L2j Veteran
Posts: 649
Joined: Wed Mar 11, 2009 10:34 pm
Location: Magmeld

Re: can not resolve hostname

Post 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 ;)
Image
"There are three kinds of people in this world, those who can count and those who can't"
kurasa
Posts: 4
Joined: Sun Jun 17, 2012 1:55 pm

Re: can not resolve hostname

Post 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
drgnj
Posts: 10
Joined: Wed Sep 07, 2011 6:06 am

Re: can not resolve hostname

Post 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 :(
User avatar
UnAfraid
L2j Veteran
L2j Veteran
Posts: 4199
Joined: Mon Jul 23, 2007 4:25 pm
Location: Bulgaria
Contact:

Re: can not resolve hostname

Post by UnAfraid »

Add in hosts file

Code: Select all

127.0.0.1 L2AuthD.Lineage2.com
Image
drgnj
Posts: 10
Joined: Wed Sep 07, 2011 6:06 am

Re: can not resolve hostname

Post by drgnj »

not working.. i get again error for different version protocol..
kurasa
Posts: 4
Joined: Sun Jun 17, 2012 1:55 pm

Re: can not resolve hostname

Post by kurasa »

I had to change system...
drgnj
Posts: 10
Joined: Wed Sep 07, 2011 6:06 am

Re: can not resolve hostname

Post by drgnj »

kurasa wrote:I had to change system...
+1 :)
Arang
Posts: 4
Joined: Fri May 13, 2011 9:19 am

Re: can not resolve hostname

Post 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
l2battle
Posts: 4
Joined: Fri Dec 28, 2012 9:49 pm

Re: can not resolve hostname

Post 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???
Arang
Posts: 4
Joined: Fri May 13, 2011 9:19 am

Re: can not resolve hostname

Post 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
User avatar
MELERIX
L2j Veteran
L2j Veteran
Posts: 6667
Joined: Sat Sep 23, 2006 11:31 pm
Location: Chile
Contact:

Re: can not resolve hostname

Post 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
l2battle
Posts: 4
Joined: Fri Dec 28, 2012 9:49 pm

Re: can not resolve hostname

Post 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
Post Reply