[Help]Not Able to Host Online server without Hamachi

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
pape90
Posts: 28
Joined: Sat Mar 19, 2011 1:01 am

[Help]Not Able to Host Online server without Hamachi

Post by pape90 »

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

Hi men,first of all,sorry for my bad english.
I'm new in l2 server creation,and i'm new in l2java completely :) Btw,i found here and googling how to build a l2j server..and after a 3 days work, i got it (yes,3 days for a 3h work, <--- n00b).. however, i got my server works properly as local,but i'm not able after a lot of try to get my friends connect with this.. the only way i found is hamachi.
My question is: somebody could help me with the configuration to put the server online?
i found a lot of guide speaking about "externalhostname and internalhostname"in server.properties and loginserver.properties, but with the new releases, that files was changed and i don't have these folder..this is the way i've set up for local.

server.properties
# ---------------------------------------------------------------------------
# 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
# Default: 127.0.0.1
LoginHost = 127.0.0.1

# 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 = *

# 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 = root

# 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 = 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: 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

IPCONFIG.XML
<?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.1" 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>

loginserver.properties
# ---------------------------------------------------------------------------
# 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: 2106
LoginserverPort = 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: 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 = False

# 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 = root

# 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

---------------------------------------------------------------------------------------------------------------------------------------------------------------------

and so my host is
#--------------------------
127.0.0.1 localhost
-#-------------------------
127.0.0.1 testauthd.lineage2.com
127.0.0.1 l2authd.lineage2.com



i tried to put my ip (http://www.whatismyip)in a lot of spot,whitout success :(
what i have to do in order to make my friend connect with me? :)
(i've already tried the search button).
thx anticipately for the answer
Last edited by pape90 on Mon Mar 21, 2011 1:07 am, edited 2 times in total.
User avatar
tukune
Posts: 533
Joined: Sun Mar 29, 2009 2:35 pm
Location: Japan

Re: [Help]Not Able to Host Online server without Hamachi

Post by tukune »

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

your frinds hosts
5.189.137.88 l2authd bla bla
5.189.137.88 l2authdtest bla bla....
Last edited by tukune on Mon Mar 21, 2011 1:07 am, edited 1 time in total.
pape90
Posts: 28
Joined: Sat Mar 19, 2011 1:01 am

Re: [Help]Not Able to Host Online server without Hamachi

Post by pape90 »

sorry, i edit it, that 5.189... is the address i use with hamachi... usually there is a 127..... there :)...
what can i do?
Zumba
Posts: 58
Joined: Fri Nov 12, 2010 5:01 pm

Re: [Help]Not Able to Host Online server without Hamachi

Post by Zumba »

tukune wrote:IPCONFIG.XML
<?xml version="1.0" encoding="UTF-8"?>
<!-- Externalhost here (Internet IP) or Localhost IP for local test -->
<gameserver address="5.189.137.88" 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.???.???" />
</gameserver>

your frinds hosts
5.189.137.88 l2authd bla bla
5.189.137.88 l2authdtest bla bla....
Internalhost is PERFECTLY right configured, those ??? just show ignorance

all you have to do is configure EXTERNAL host to point to your STATIC IP.

if you don't have STATIC IP use no-ip, or DynDNS service. example:

Code: Select all

<gameserver address="yourservername.dyndns-home.com">
and also, your friends need to edit their hosts file and add this:

Code: Select all

yourservername.dyndns-home.com   L2authd.lineage2.com
you KEEP 127.0.0.1 L2authd.lineage2.com on YOUR machine
Last edited by Zumba on Mon Mar 21, 2011 1:28 am, edited 1 time in total.
pape90
Posts: 28
Joined: Sat Mar 19, 2011 1:01 am

Re: [Help]Not Able to Host Online server without Hamachi

Post by pape90 »

mmh ok i try, thanks a lot :) i will write here for news!
pape90
Posts: 28
Joined: Sat Mar 19, 2011 1:01 am

Re: [Help]Not Able to Host Online server without Hamachi

Post by pape90 »

ok i tried to put my static ip in:
1) ipconfig.xml, gameserver address: 192.168.1.133
... i modified my friend's host and start login and gameserver.. all good for me, but my friend is blocked in "please wait" login

2) then i putted the static ip ALSO in
-ipconfig.xml: define subnet:127.0.0.1 address: 192.168.1.133
-gameserver/server.properties --> loginhost: 192.168.1.133

same result.. :(

(my friend used the 192.168.1.133 l2authd 192.168,1.133 testl2authd host)
Zumba
Posts: 58
Joined: Fri Nov 12, 2010 5:01 pm

Re: [Help]Not Able to Host Online server without Hamachi

Post by Zumba »

pape90 wrote:ok i tried to put my static ip in:
1) ipconfig.xml, gameserver address: 192.168.1.133
... i modified my friend's host and start login and gameserver.. all good for me, but my friend is blocked in "please wait" login

2) then i putted the static ip ALSO in
-ipconfig.xml: define subnet:127.0.0.1 address: 192.168.1.133
-gameserver/server.properties --> loginhost: 192.168.1.133

same result.. :(

(my friend used the 192.168.1.133 l2authd 192.168,1.133 testl2authd host)
dude, that's your INTERNAL IP.

you need static EXTERNAL IP = INTERNET IP

use whatsmyip.com and see what's your IP.

NOTE: if you have DYNAMIC IP , use those services I mentioned
If you don't know what Dynamic and/or Static IP means - google it
pape90
Posts: 28
Joined: Sat Mar 19, 2011 1:01 am

Re: [Help]Not Able to Host Online server without Hamachi

Post by pape90 »

ok, now i have the dns service: lj2pape.dyndns-ip.com
and the ip with i've configured dns: 79.22.47.109.

i've modified my friend host with lj2pape.dyndns-ip.com l2authd
lj2pape.dyndns-ip.com testl2authd


ok,now where i must write what? :)
sorry again for newbie-ness and bad english :D
Zumba
Posts: 58
Joined: Fri Nov 12, 2010 5:01 pm

Re: [Help]Not Able to Host Online server without Hamachi

Post by Zumba »

now just put it in ipconfig:

Code: Select all

<gameserver address="lj2pape.dyndns-ip.com">
btw, have you installed DynDNS updater on your machine?
User avatar
jurchiks
Posts: 6769
Joined: Sat Sep 19, 2009 4:16 pm
Location: Eastern Europe

Re: [Help]Not Able to Host Online server without Hamachi

Post by jurchiks »

hosts have to contain this:
lj2pape.dyndns-ip.com l2authd.lineage2.com
Anyway, are you even SURE you have a dynamic IP?
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.
pape90
Posts: 28
Joined: Sat Mar 19, 2011 1:01 am

Re: [Help]Not Able to Host Online server without Hamachi

Post by pape90 »

yes pretty sure, i tried to turn off modem,turn off pc,restart both tem and the ip in www.whatismyip changed :)
however, i wrote lj2pape.dyndns-ip.com in gameserver address, MY host is 127.0.... m my FRIEND host has both l2authd and testl2authd with lj2pape.dynds-ip.com...

all my files are like for local, only thing i've changed is the gameserver address in ipconfig.xml.
dyndns updater installed and activated,
try to my friend login and it says him password does not match...., like he's trying to connect with official..
what others changes i have to do? or it could be a problem of my friend's client?
Zumba
Posts: 58
Joined: Fri Nov 12, 2010 5:01 pm

Re: [Help]Not Able to Host Online server without Hamachi

Post by Zumba »

you need to open ports:

Code: Select all

901477772106
in your firewall/router

those ports are used for client <-> server communication
pape90
Posts: 28
Joined: Sat Mar 19, 2011 1:01 am

Re: [Help]Not Able to Host Online server without Hamachi

Post by pape90 »

Zumba wrote:you need to open ports:

Code: Select all

901477772106
in your firewall/router

those ports are used for client <-> server communication
thx my friend zumba, i try this too, stay tuned XD
pape90
Posts: 28
Joined: Sat Mar 19, 2011 1:01 am

Re: [Help]Not Able to Host Online server without Hamachi

Post by pape90 »

ok, i opened these port, tested and result ok... opened both router and firewall :)

now,starting from localhost settings, i change gameserveraddress in ipconfig.xml with -> lj2pape.dynds-ip.com...

start login server --> ok
start gameserver---> ok

my client -> login ok, server ok... ok all right for me... with host 127.0.0.0 l2authd...
my friend's client -->with host lj2pape.dyndns-ip.com l2authd... start client --> log--> password doesn't match....


any ideas? T_T (<--- madness incoming)
User avatar
jurchiks
Posts: 6769
Joined: Sat Sep 19, 2009 4:16 pm
Location: Eastern Europe

Re: [Help]Not Able to Host Online server without Hamachi

Post by jurchiks »

maybe he has caps lock on? :D
do you have auto-create accounts on? does his account exist in server database?
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.
Locked