Page 1 of 1

WAN Connection

Posted: Wed Apr 23, 2014 1:43 pm
by mikiztly
L2J Revision Number: 6502
L2JDP Revision Number: 10284

hi, i'm newbie with l2j and after a month i can run and connect to my server localy but form internet no one can.
this is my situation:
SERVER
ubuntu server 12.10 working only in terminal mode, here i run mysql, apache, php and l2j and the ip is static 192.168.100.4
- L2J 6502
- L2JDP 10284
- i can't find ipconfig.xml
my Server.properties is

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# --------------------------------------------------------------------------- # Enables automatic port mapping for game server.# If you have a router game server will request for port forwarding.# Default: TrueEnableUPnP = True # 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 
and my LoginServer.properties is

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# --------------------------------------------------------------------------- # Enables automatic port mapping for login server.# If you have a router login server will request for port forwarding.# Default: TrueEnableUPnP = True # 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: 127.0.0.1LoginHostname = 127.0.0.1 # The port on which login will listen for GameServers# Default: 9014LoginPort = 9014 # ---------------------------------------------------------------------------# Security# --------------------------------------------------------------------------- # Logs in file the login server events.# 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: TrueAcceptNewGameServer = True # 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 # Connection close time.# Default: 60000ConnectionCloseTime = 60000 # ---------------------------------------------------------------------------# Misc.# --------------------------------------------------------------------------- # If False, the license (after the login) will not be shown.# Default: TrueShowLicence = False # Default: TrueAutoCreateAccounts = True # Datapack root directory.# Defaults to current directory from which the server is started.DatapackRoot = . # ---------------------------------------------------------------------------# Developer Settings# --------------------------------------------------------------------------- # Default: FalseDebug = False # ---------------------------------------------------------------------------# Restart LS every 24 hours?# --------------------------------------------------------------------------- # Enable disable scheduled login restart.# Default: FalseLoginRestartSchedule = False # Time in hours.# Default: 24LoginRestartTime = 24 
CLIENT 1
windows 7 ultimate with client h5 work ok, ip 192.168.100.5

CLIENT 2
windows XP SP3 with client h5 work ok, ip 192.168.100.11

CLIENT 3
windows XP SP3 with client h5 work ok, ip 192.168.100.12

ROUTER
ip is 192.168.100.1, its a pc with http://www.zeroshell.org/ as OS and configured virtual server:
ETH01 / ANY TCP/UDP 2106 192.168.100.4:2106
ETH01 / ANY TCP/UDP 7777 192.168.100.4:7777
ETH01 is wan ethernet and ETH00 is the lan ethernet
also its configured no-ip service and i tested with ftp, ssh and web and its working fine

the connection between server and client 1, 2 and 3 its ok but when my friends try to connect from outside they login and stuck in server selection screen, they click confirm button but nothing happend. t read every post with similar problem but i can't find a solution.
i make ipconfig.xml with notepad ++ and work ok but still connection form internet is not possible so i deleted the file, check if ports are open and its everything ok
the log files are:
login stdout:

Code: Select all

 [23 abr 0:36:56] Loading LoginController...[23 abr 0:36:59] Cached 10 KeyPairs for RSA communication[23 abr 0:36:59] Stored 20 keys for Blowfish communication[23 abr 0:36:59] GameServerTable: Loaded 127 server names[23 abr 0:36:59] GameServerTable: Loaded 1 registered Game Servers[23 abr 0:36:59] GameServerTable: Cached 10 RSA keys for Game Server communication.[23 abr 0:36:59] Loaded 2 IP Bans.[23 abr 0:36:59] Listening for GameServers on 127.0.0.1:9014[23 abr 0:36:59] Telnet server is currently disabled.[23 abr 0:36:59] L2LoginServer: is now listening on: *:2106[23 abr 0:36:59] Looking for UPnP Gateway Devices...[23 abr 0:37:08] No UPnP gateways found[23 abr 0:39:32] Updated Gameserver [1] Bartz IP's:[23 abr 0:39:32] 192.168.100.4/192.168.100.0/24[23 abr 0:39:32] 201.231.127.154/0.0.0.0/0 
gameserver stdout.log:

Code: Select all

 [23 abr 0:37:33] Network Config: ipconfig.xml doesn't exists using automatic configuration...[23 abr 0:37:34] Network Config: Adding new subnet: 192.168.100.0/24 address: 192.168.100.4[23 abr 0:37:34] Network Config: Adding new subnet: 0.0.0.0/0 address: 201.231.127.154[23 abr 0:37:34] [SkillDurationList]: invalid config property -> SkillDurationList "1365"[23 abr 0:37:34] [L2JMods.properties] Invalid value specified for key: WeddingDivorceCosts specified value: 25000000000 should be "int" using default value: 20[23 abr 0:37:34] Loaded 6 Filter Words.[23 abr 0:37:34] ------------------------------------------------=[ Database ][23 abr 0:37:35] GameServer: L2J Server Version:    6502[23 abr 0:37:35] GameServer: L2J Datapack Version:  10284[23 abr 0:37:35] Updated characters online status.[23 abr 0:37:35] Cleaned up invalid Weddings.[23 abr 0:37:35] Cleaned 0 elements from database in 0 s[23 abr 0:37:35] Cleaned 0 expired timestamps from database.[23 abr 0:37:35] BitSetIDFactory: 102912 id's available.[23 abr 0:37:35] -------------------------------------------------=[ Engines ][23 abr 0:37:36] Script Engine: jython 2.2.1 - Language: python - Language Version: 2.2.1[23 abr 0:37:36] Script Engine: java 1.7 - Language: java - Language Version: 1.7[23 abr 0:37:36] Script Engine: Rhino Rhino 1.7 release 3 2012 05 18 - Language: ECMAScript - Language Version: 1.7[23 abr 0:37:36] ---------------------------------------------------=[ World ][23 abr 0:37:36] GameTimeController: Started.[23 abr 0:37:36] InstanceManager: Multiverse Instance created.[23 abr 0:37:36] InstanceManager: Universe Instance created.[23 abr 0:37:36] InstanceManager: Loaded 160 instance names.[23 abr 0:37:36] L2World: (128 by 136) World Region Grid set up.[23 abr 0:37:37] MapRegionManager: Loaded 57 map regions.[23 abr 0:37:37] GlobalVariablesManager: Loaded 5 variables.[23 abr 0:37:37] ----------------------------------------------------=[ Data ][23 abr 0:37:37] CategoryData: Loaded 124 Categories.[23 abr 0:37:37] SecondaryAuthData: Loaded 328 forbidden passwords.... MORE TEXT ...[23 abr 0:39:32] GameServer: Started, free memory 762 Mb of 1484 Mb[23 abr 0:39:32] Connecting to login on 127.0.0.1:9014[23 abr 0:39:32] CommunityServerThread: Deactivated by config.[23 abr 0:39:32] Registered on login as Server 1 : Bartz[23 abr 0:39:32] GameServer: is now listening on: *:7777[23 abr 0:39:32] GameServer: Maximum numbers of connected players: 100[23 abr 0:39:32] GameServer: Server loaded in 117 seconds.[23 abr 0:39:32] ----------------------------------------------------=[ UPnP ][23 abr 0:39:32] Looking for UPnP Gateway Devices...[23 abr 0:39:41] No UPnP gateways found[23 abr 0:39:41] AutoAnnoucements: Loaded 0 Auto Annoucement Data.[23 abr 0:39:41] GameServer: Telnet server is currently disabled.[23 abr 0:47:50] GlobalVariablesManager: Stored 5 variables.[23 abr 1:00:00] DayNightSpawnManager: Removed 601 night creatures[23 abr 1:00:00] DayNightSpawnManager: Spawned 232 day creatures[23 abr 1:00:00] DayNightSpawnManager: Deleting Hellman raidboss[23 abr 1:09:30] SevenSigns: Data updated successfully.... MORE TEXT ... 
i check 2014-04-23-loginlog.txt:

Code: Select all

 [14.04.23 0:59:56] 'mikiztly' 192.168.100.5 - OK : LoginOk --> client 1[14.04.23 1:13:59] 'mikiztly' 192.168.100.5 - OK : LoginOk --> client 1[14.04.23 10:06:36] 'diego' 192.168.100.1 - OK : LoginOk --> router ip, i suppose is an external connection 
checking accounting.log

Code: Select all

 [23 abr 1:14:04] Logged in, Moradin(268483847) mikiztly 192.168.100.5 --> client 1[23 abr 1:42:45] Disconnected, Moradin(268483847) mikiztly 192.168.100.5 --> client 1 
i don't know what else check or configure :?: :(
i think its a ip configuration but i have no idea where is the problem, i rely be thankfull if any one can tell me what to do.
i'm sorry for my english :oops: , i'm form argentina

Re: WAN Connection

Posted: Wed Apr 23, 2014 2:13 pm
by UnAfraid
Server automatically configures network if there is no ipconfig.xml to enforce your own network configuration.

Re: WAN Connection

Posted: Wed Apr 23, 2014 2:44 pm
by siphonex
Having the server automatically configure my network for me never seemed to work. If you want you could use Google and search for a certain ipconfig.xml generator. I used this myself about a year ago so I'm not sure if its still in operation.

Also make sure ports are forwarded.

Re: WAN Connection

Posted: Wed Apr 23, 2014 3:54 pm
by mikiztly
siphonex wrote:Having the server automatically configure my network for me never seemed to work. If you want you could use Google and search for a certain ipconfig.xml generator. I used this myself about a year ago so I'm not sure if its still in operation.

Also make sure ports are forwarded.
thanks siphonex, i found viewtopic.php?f=94&t=25961 and use the xml generator, put the ipconfig in gameserver/config:

Code: Select all

 <?xml version="1.0" encoding="UTF-8"?><!-- Generated by http://ipconfig.admincp.eu/ --><!-- Externalhost here (Internet IP) or Localhost IP for local test --><gameserver address="miservidor.servegame.com" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="../data/xsd/ipconfig.xsd">    <!-- Localhost here -->    <define subnet="127.0.0.0/8" address="127.0.0.1" />    <!-- Internalhosts here (LANs IPs) -->    <define subnet="192.168.100.0/24" address="192.168.100.4" /> <!-- Realtek PCIe FE Family Controller --></gameserver> 
everything work and form lan i can connect but from internet can't.
the logs are:

loginserver log:

Code: Select all

 [23 abr 12:17:09] Loading LoginController...[23 abr 12:17:12] Cached 10 KeyPairs for RSA communication[23 abr 12:17:12] Stored 20 keys for Blowfish communication[23 abr 12:17:12] GameServerTable: Loaded 127 server names[23 abr 12:17:12] GameServerTable: Loaded 1 registered Game Servers[23 abr 12:17:12] GameServerTable: Cached 10 RSA keys for Game Server communication.[23 abr 12:17:12] Loaded 2 IP Bans.[23 abr 12:17:12] Listening for GameServers on 127.0.0.1:9014[23 abr 12:17:12] Telnet server is currently disabled.[23 abr 12:17:12] L2LoginServer: is now listening on: *:2106[23 abr 12:17:12] Looking for UPnP Gateway Devices...[23 abr 12:17:21] No UPnP gateways found[23 abr 12:19:22] Updated Gameserver [1] Bartz IP's:[23 abr 12:19:22] 127.0.0.1/127.0.0.0/8[23 abr 12:19:22] 192.168.100.4/192.168.100.0/24[23 abr 12:19:22] miservidor.servegame.com/0.0.0.0/0
loginserver/game/2014-04-23-loginlog.txt

Code: Select all

 [14.04.23 12:25:46] 'mikiztly' 192.168.100.5 - OK : LoginOk -->local client[14.04.23 12:27:15] 'diego' 192.168.100.1 - OK : LoginOk --> router ip, external client
gameserver/accounting.log:

Code: Select all

 [23 abr 12:25:53] Logged in, Moradin(268483847) mikiztly 192.168.100.5 --> local client[23 abr 12:29:05] Disconnected, Moradin(268483847) mikiztly 192.168.100.5 --> local client
i check the port fowarding and its ok, ports 2106 and 7777 are pointing to my server, this is working sinse from internet they can login but stuck at server selection :x

also remember i'm using ubuntu server 12.10 with no gui so i run eclipse and other tool in client 1 (win 7) and copy via samba to my server

Re: WAN Connection

Posted: Wed Apr 23, 2014 9:15 pm
by mikiztly
UnAfraid wrote:Server automatically configures network if there is no ipconfig.xml to enforce your own network configuration.
yes, i read about that feature but can't connect form internet. also tryed with ipconfig.xml and obtain same result :cry:

Re: WAN Connection

Posted: Thu Apr 24, 2014 2:41 pm
by siphonex
Only other thing I can think of would be to check if your firewall is blocking incoming connections.

Re: WAN Connection

Posted: Thu Apr 24, 2014 5:46 pm
by gmexid
Did you make ure you forwarded your ports, this will allow incoming connections, some ISP block them by defaults, what is your IP addess, 192.168.100.4 is not your external IP address that people can use to connect from outside your network...

type whatismyip.com to find external IP....


:evil:

Re: WAN Connection

Posted: Thu Apr 24, 2014 7:40 pm
by mikiztly
siphonex wrote:Only other thing I can think of would be to check if your firewall is blocking incoming connections.
i think that too but i checked and i can connect form outside to http, ssh, mysql, ftp AND login server. trying connection form internet they can login and get server selection screen but when click connection button nothing happend. :?:
my server is ubuntu 12.10 and i dont install a firewall to avid such problem :o
i really dont know what else try, i supose its a problem whit loginserver->gameserver issue, port 7777 is open so i think the problem is with resolvin ip's couse loginserver log says outside connection is form 192.168.100.1 (router ip)
i will try an upgrade and tell you how i did :P

Re: WAN Connection

Posted: Thu Apr 24, 2014 9:05 pm
by mikiztly
gmexid wrote:Did you make ure you forwarded your ports, this will allow incoming connections, some ISP block them by defaults, what is your IP addess, 192.168.100.4 is not your external IP address that people can use to connect from outside your network...

type whatismyip.com to find external IP....

:evil:
when i configure client-side i do it with external ip, i try with real ip (214.xxx.xxx.xxx) and i have miservidor.servegame.com (no-ip service)
any way i still the same problem: client can login but stuck in server selection screen :x

Re: WAN Connection

Posted: Fri Apr 25, 2014 8:52 pm
by mikiztly
thanks to @Illusionz i have my server working, the problem was im not using upnp and my router os not have that option. i change my router os to pfsense and activate upnp and everything work fine :lol:

Re: WAN Connection

Posted: Tue Apr 29, 2014 1:24 am
by gmexid
did you check the ipconfig.xml file? did you remove the "default" portion, you have to rename that file for it to work.. :lol:

Re: WAN Connection

Posted: Tue Apr 29, 2014 1:28 pm
by mikiztly
gmexid wrote:did you check the ipconfig.xml file? did you remove the "default" portion, you have to rename that file for it to work.. :lol:
yes, i delete ipconfig.xml and change the os in my router to enable upnp and everything work fine :lol: