Код:
# ================== #========================#
# L2EMU PROJECT PACK # Network Configuration #
# ================== #========================#
# ================================================================================================= #
# This is the network configuration file. Here you can set up the connection for your Loginserver. #
# Usually you have to change the LoginServerHostName option to #
# - 127.0.0.1 (if you want to play alone / testing purpose) #
# - LAN IP* (if you want to play from another computer in the network) #
# - WAN IP** (if you want to play with friends over internet) #
# - Support => [url]http://www.l2emu.net[/url] #
# - If you want to get your LAN IP, simply choose "Start" => "Run..." then type "cmd" => "ipconfig" #
# - If you want to get you WAN IP, visit [url]http://www.whatismyip.com[/url] or [url]www.showip.com[/url] #
# ================================================================================================= #
# ==========
# Connection
# ==========
# Bind ip of the loginserver, use 0.0.0.0 to bind on all available IPs
LoginServerHostName = 127.0.0.1
LoginServerPort = 2106
# The port, ip on which login will listen for GameServers
LoginPort = 9014
LoginHostName = 127.0.0.1
# The delay between IP Update Time.
# set this delay in minutes after which the login updates the gameservers IP's
# (usefull when ip is dynamic)
# (0 = disabled) in Minutes
IpUpdateTime = 10
# Telnet is disabled by default.
EnableTelnet = false
# ============
# Port Related
# ============
# This is the port telnet server will bind to
StatusPort = 12345
# ============
# Pass Related
# ============
# If the following is not set, a random password is generated on server startup.
# StatusPW = somePass
# =====
# Hosts
# =====
# This list can contain IPs or Hosts of clients you wish to allow.
# Hosts must be resolvable to an IP.
# The format is as follows:
# ListOfHosts = 0.0.0.0,host,0.0.0.1,host2,host3,host4,0.0.0.3
# Make sure there are no spaces between hosts/ips
ListOfHosts = 127.0.0.1,localhost
# --------------------
# Database Information
# --------------------
# Define MySQL Driver
Driver = com.mysql.jdbc.Driver
# here you have some more drivers:
# Driver = org.hsqldb.jdbcDriver
# Driver = com.microsoft.sqlserver.jdbc.SQLServerDriver
# Define MySQL Driver URL.
URL = jdbc:mysql://localhost/L2Emu_DB
# here you have some more urls:
# URL = jdbc:hsqldb:hsql://localhost/L2Emu_DB
# URL = jdbc:sqlserver://localhost/database = L2Emu_DB/user = sa /password = (your pass)
# Your login to Database (default = root)
Login = root
# Your password to database (default = root)
Password = root
# Define how many connections are allowed on your database.
MaximumDbConnections = 20
# ================== #==================#
# L2Emu Project Pack # Network Settings #
# ================== #==================#
# ------------------
# Here you can Setup:
# ------------------
# - General network Connection
# - Telnet
# - Database Connection
# - HTML cache
# ------------------------------------------------------------------------------------------------- #
# Usually you have to change the ExternalHostname option to #
# - 127.0.0.1 (if you want to play alone / testing purpose) #
# - LAN IP* (if you want to play from another computer in the network) #
# - WAN IP** (if you want to play with friends over internet) #
# - Support => [url]http://www.l2emu.net[/url] #
# - If you want to get your LAN IP, simply choose "Start" => "Run..." then type "cmd" => "ipconfig" #
# - If you want to get you WAN IP, visit [url]http://www.whatismyip.com[/url] or [url]http://www.showip.com[/url] #
# ------------------------------------------------------------------------------------------------- #
# ---------------------------------
# Section: Network Connection Setup
# ---------------------------------
# Bind ip of the gameserver, use 0.0.0.0 to bind on all available IPs
# This is The IP/Port Gameserver will Assume and Use.
GameServerHostName = 127.0.0.1
GameServerPort = 7777
# this is the Loginserver host and port that this gameserver will try to connect to.
LoginPort = 9014
LoginHost = 127.0.0.1
# This is transmitted to the clients connecting from an external network,
# so it has to be a public IP or resolvable hostname.
ExternalHostname = 127.0.0.1
# This is transmitted to the client from the same network,
# so it has to be a local IP or resolvable hostname
InternalHostname = 127.0.0.1
# ------------------------------------
# Section: Subnets & Advanced Routing
# ------------------------------------
# Define optional networks and router IPs
#
# Format:
#
# Subnet = host, net/mask; host, net/mask, net/mask
#
# host - IP address (200.100.200.100) or
# fully qualified domain name (example.org)
#
# net/mask - mask 192.168.0.0/16 or 192.168.0.0/255.255.0.0
# would be 192.168.*.*
#
# External - external hostname, you defined in server.properties
# Internal - internal hostname, you defined in server.properties
#
# Example:
# Subnet = 169.254.1.100, 169.254.0.0/16, 111.222.333.0/255.255.255.0
InternalNetworks =
OptionalNetworks =
Subnet = Internal, 127.0.0.1/32, 192.168.0.0/16, 10.0.0.0/8, 172.16.0.0/12
Subnet = External, 0.0.0.0/0
# ---------------
# Section: Telnet
# ---------------
# Enables /Disables Telnet Server.
EnableTelnet = false
# This is the port telnet server will bind to
# default 23, telnet port.
StatusPort = 23
# If the following is not set, a random password is generated on server startup.
# default l2emuproject, fell free to change it.
StatusPW = l2emuproject
# Use alternative telnet, requiring to do a real login with a GM so your GM-name can be used for messaged instead of "telnet".
AltTelnet = true
# if a password is not set, telnet server will generate a random one, so you define the size of it.
TelnetPasswordLength = 10
# Hosts must be resolvable to an IP.
# define here the IPs allowed to connect to your server via Telnet.
# The format is as follows:
# ListOfHosts = 0.0.0.0,host,0.0.0.1,host2,host3,host4,0.0.0.3
# NOTE: Make sure there are no spaces between hosts/ips !
ListOfHosts = 127.0.0.1,localhost
# ----------------------------
# Section: Database Connection
# ----------------------------
# MySQL Driver we will use to connect to database
Driver= com.mysql.jdbc.Driver
# here are some other drivers :
# Driver= org.hsqldb.jdbcDriver
# Driver= com.microsoft.sqlserver.jdbc.SQLServerDriver
# URL to connect to database.
URL = jdbc:mysql://localhost/L2Emu_DB
# here are some other url's :
# URL = jdbc:hsqldb:hsql://localhost/L2Emu_DB
# URL = jdbc:sqlserver://localhost/database=L2Emu_DB/user=sa/password=
# your database login (by default MySQL uses = root, Warning: Not a Safe Setting! try to use your own login)
Login = root
# your database password (by default MySQL uses = root, Warning: Not a Safe Setting! try to use your own pass)
Password = root
# define here how many connections are allowed at the same time.
MaximumDbConnections = 50
# -------------------
# Section: HTML Cache
# -------------------
# Set the html cache's lazy loading true or false
# (Load html's into cache only on first time requested)
LazyCache = true
# Network traffic optimization: minimum time between sending char's hp/mp status update packet.
NetworkTrafficOptimization = true
NetworkTrafficOptimizationStatusMs = 400
NetworkTrafficOptimizationBroadcastMs = 800