Another IP set up problem

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
msknight
Advanced User
Advanced User
Posts: 308
Joined: Wed May 10, 2006 11:40 am
Location: U.K.

Another IP set up problem

Post by msknight »

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

Well, here we go. It was a reasonably large update for me, having not updated in quite a while.

Symptom, I can log on to login server. Servers show in the list, but there is no action when I click on the only active server.

Internal IP address of server 192.168.0.3/24 (class C) - external 195.7.255.202

Note that despite having "RequestServerID = 0" the server connects and registers under ID 40, and shows on the logon screen as Lithra, just as it always has done.

Any ideas please?

ipconfig.xml...

Code: Select all

<?xml version="1.0" encoding="UTF-8"?><!-- Put old contents of ExternalHostname here, used by default --><gameserver address="195.7.255.202">    <!-- Localhost access -->    <define subnet="127.0.0.0/8" address="127.0.0.1" />    <!-- LAN's, put old contents of InternalHostname here -->    <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>
Gameserver 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# ---------------------------------------------------------------------------## Note: External/Internal address definitions was moved to the ipconfig.xml# # Where's the Login server this gameserver should connect to# 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.# 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/l2jdb (default)# URL = jdbc:hsqldb:hsql://localhost/l2jdb# URL = jdbc:sqlserver://localhost/database = l2jdb/user = sa/password = URL=jdbc:mysql://192.168.0.3/lithra# Database user info (default is "root" but it's not recommended)Login = *******# 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 = 0 # 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.#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 
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# Default: *LoginserverHostname = * # Default: 2106LoginserverPort = 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: 9014LoginPort = 9014 # The delay in minutes after which the login updates the gameservers IP's (usefull when their ip is dynamic)# Default: 15IpUpdateTime = 15  # ---------------------------------------------------------------------------# Security# ---------------------------------------------------------------------------# Default: TrueLogLoginController = True # How many times you can provide an invalid account/pass before the IP gets banned.# Default: 10LoginTryBeforeBan=20 # 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 # Enforce GameGuard authorization from client?# If True, login server will kick client if the client bypassed GameGuard authentication.# Default: FalseForceGGAuth = 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/l2jdb (default)# URL = jdbc:hsqldb:hsql://localhost/l2jdb# URL = jdbc:sqlserver://localhost/database = l2jdb/user = sa/password = URL=jdbc:mysql://localhost/logi# Database user info (default is "root" but it's not recommended)Login=********r# Database connection passwordPassword=******** # Default: 10MaximumDbConnections = 10 # Default: 0MaximumDbIdleTime = 0
Last lines of gameserver console..

Code: Select all

09-Oct-2010 16:27:36 com.l2jserver.gameserver.instancemanager.HellboundManager initINFO: HellboundManager: Mode: dummy09-Oct-2010 16:27:36 com.l2jserver.gameserver.instancemanager.HellboundManager initINFO: HellboundManager: State: unlocked09-Oct-2010 16:27:36 com.l2jserver.gameserver.instancemanager.MailManager loadINFO: Mail Manager: Successfully loaded 0 messages.09-Oct-2010 16:27:36 com.l2jserver.gameserver.GameServer INFO: IdFactory: Free ObjectID's remaining: 187898466709-Oct-2010 16:27:36 com.l2jserver.gameserver.model.entity.TvTManager INFO: TvTEventEngine[TvTManager.TvTManager()]: Engine is disabled.09-Oct-2010 16:27:37 com.l2jserver.gameserver.GameServer INFO: GameServer Started, free memory 1417 Mb of 1955 Mb09-Oct-2010 16:27:37 com.l2jserver.gameserver.network.communityserver.CommunityServerThread initializeINFO: CommunityServerThread: Deactivated by config.09-Oct-2010 16:27:37 com.l2jserver.gameserver.LoginServerThread runINFO: Connecting to login on 127.0.0.1:901409-Oct-2010 16:27:38 com.l2jserver.gameserver.GameServer INFO: Maximum Numbers of Connected Players: 10009-Oct-2010 16:27:38 com.l2jserver.gameserver.GameServer INFO: Server Loaded in 64 seconds09-Oct-2010 16:27:38 com.l2jserver.gameserver.taskmanager.AutoAnnounceTaskManager restoreINFO: AutoAnnoucements: Loaded 0 Auto Annoucement Data.09-Oct-2010 16:27:38 com.l2jserver.status.Status INFO: Telnet StatusServer started successfully, listening on Port: 4545809-Oct-2010 16:27:38 com.l2jserver.gameserver.LoginServerThread runINFO: Registered on login as Server 40 : Lockirin 
Last lines of logon server...
NOTE - missing account name was deliberately given to prove client was talking with logon server.

Code: Select all

INFO: Loaded 127 server namesOct 9, 2010 4:19:05 PM com.l2jserver.loginserver.GameServerTable INFO: Loaded 3 registered Game ServersOct 9, 2010 4:19:05 PM com.l2jserver.loginserver.GameServerTable INFO: Cached 10 RSA keys for Game Server communication.Oct 9, 2010 4:19:05 PM com.l2jserver.loginserver.L2LoginServer loadBanFileINFO: Loaded 2 IP Bans.Oct 9, 2010 4:19:05 PM com.l2jserver.loginserver.L2LoginServer INFO: Listening for GameServers on *:9014Oct 9, 2010 4:19:05 PM com.l2jserver.status.Status INFO: Telnet StatusServer started successfully, listening on Port: 9989Oct 9, 2010 4:19:05 PM com.l2jserver.loginserver.L2LoginServer INFO: Login Server ready on *:2106Oct 9, 2010 4:19:07 PM com.l2jserver.loginserver.GameServerThread setGameHostsINFO: Updated Gameserver [40] Lockirin IP's:Oct 9, 2010 4:19:07 PM com.l2jserver.loginserver.GameServerThread setGameHostsWARNING: Couldn't resolve hostname "java.net.UnknownHostException: 192.168.0.3/16"Oct 9, 2010 4:19:07 PM com.l2jserver.loginserver.GameServerThread setGameHostsINFO: 127.0.0.1/127.0.0.0/8Oct 9, 2010 4:19:07 PM com.l2jserver.loginserver.GameServerThread setGameHostsINFO: 127.0.0.1/0.0.0.0/0Oct 9, 2010 4:20:06 PM com.l2jserver.loginserver.LoginController loginValidWARNING: Account missing for user michellekOct 9, 2010 4:26:22 PM com.l2jserver.loginserver.GameServerThread runINFO: Server [40] Lockirin is now set as disconnectedOct 9, 2010 4:27:38 PM com.l2jserver.loginserver.GameServerThread setGameHostsINFO: Updated Gameserver [40] Lockirin IP's:Oct 9, 2010 4:27:38 PM com.l2jserver.loginserver.GameServerThread setGameHostsINFO: 127.0.0.1/127.0.0.0/8Oct 9, 2010 4:27:38 PM com.l2jserver.loginserver.GameServerThread setGameHostsINFO: 10.0.0.0/10.0.0.0/8Oct 9, 2010 4:27:38 PM com.l2jserver.loginserver.GameServerThread setGameHostsINFO: 172.16.0.0/172.16.0.0/19Oct 9, 2010 4:27:38 PM com.l2jserver.loginserver.GameServerThread setGameHostsINFO: 192.168.0.0/192.168.0.0/16Oct 9, 2010 4:27:38 PM com.l2jserver.loginserver.GameServerThread setGameHostsINFO: 195.7.255.202/0.0.0.0/0
My friend is a paranoid schizophrenic ... she'll take over the world, as long as nobody minds.
_DS_
L2j Veteran
L2j Veteran
Posts: 3437
Joined: Wed Apr 30, 2008 8:53 am
Location: Russia

Re: Another IP set up problem

Post by _DS_ »

RequestServerID cant be 0, numbers started from 1.
And ip configuration questions was asked already 7 or 8 times. Soon i will begin close such threads without prompt.

<define subnet="192.168.0.0/24" address="192.168.0.3" />
Commiter of the shit
public static final int PI = 3.1415926535897932384626433832795;
msknight
Advanced User
Advanced User
Posts: 308
Joined: Wed May 10, 2006 11:40 am
Location: U.K.

Re: Another IP set up problem

Post by msknight »

Thanks for the help.

I'll try that.

In case you need to know, the initial set up in the SVN I got was...

<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" />

The old system worked, it didn't tie people up with needing to know subnets. Why did this change happen please?
My friend is a paranoid schizophrenic ... she'll take over the world, as long as nobody minds.
_DS_
L2j Veteran
L2j Veteran
Posts: 3437
Joined: Wed Apr 30, 2008 8:53 am
Location: Russia

Re: Another IP set up problem

Post by _DS_ »

I think what "wannabelineageserveradministrators" need to know something about ip subnets. If you just want to test on localhost - all works out of the box.
Commiter of the shit
public static final int PI = 3.1415926535897932384626433832795;
msknight
Advanced User
Advanced User
Posts: 308
Joined: Wed May 10, 2006 11:40 am
Location: U.K.

Re: Another IP set up problem

Post by msknight »

I still don't get it. Under the previous system, an external IP was straightforward.

To my, probably simple mind, this has just added another layer of complexity and I can't understand why.
My friend is a paranoid schizophrenic ... she'll take over the world, as long as nobody minds.
_DS_
L2j Veteran
L2j Veteran
Posts: 3437
Joined: Wed Apr 30, 2008 8:53 am
Location: Russia

Re: Another IP set up problem

Post by _DS_ »

Feel free to change current system in any way you needs.
Commiter of the shit
public static final int PI = 3.1415926535897932384626433832795;
msknight
Advanced User
Advanced User
Posts: 308
Joined: Wed May 10, 2006 11:40 am
Location: U.K.

Re: Another IP set up problem

Post by msknight »

That's the problem.

You're changing the system, and I can't.

Things I wrote years ago, now don't work because you've moved the goal posts.

The NPC tables, for example. They used to be larger and the dropcalc created administrator NPC's starting at 90000 to keep them well out of the way. Now, someone has changed it to smallint(5) with a max of 65000-ish. WHY? And it is not the first time the database tables have been changed like this.

To my eyes, a perfectly good system is being altered in areas for no good reason. If it ain't broke, don't fix it ... 'cause you're breaking my work as a result.

... and that ... you don't care about.

I've been chasing your changes for years ... and now you're altering in ways that I can't follow.
My friend is a paranoid schizophrenic ... she'll take over the world, as long as nobody minds.
_DS_
L2j Veteran
L2j Veteran
Posts: 3437
Joined: Wed Apr 30, 2008 8:53 am
Location: Russia

Re: Another IP set up problem

Post by _DS_ »

I really does not see the reason to create additional custom NPC by external program. Usual way - copy text line with one default NPC as template, edit 3 fields and reimport.
Commiter of the shit
public static final int PI = 3.1415926535897932384626433832795;
msknight
Advanced User
Advanced User
Posts: 308
Joined: Wed May 10, 2006 11:40 am
Location: U.K.

Re: Another IP set up problem

Post by msknight »

This was the way I was doing it before the custom data was created.

The problem is that I can't easily re-write the dropcalc to allow for custom data in the new method.

If you have character 56 in the main datapack, and someone puts a custom 56 in to overwrite it, then how do I tell the select statement to take the custom over the regular? I can't. Or, I can, but it would mean statements take much longer to execute and people would complain.

I can't win.
My friend is a paranoid schizophrenic ... she'll take over the world, as long as nobody minds.
Post Reply