Welcome!

Join our community of MMO enthusiasts and game developers! By registering, you'll gain access to discussions on the latest developments in MMO server files and collaborate with like-minded individuals. Join us today and unlock the potential of MMO server development!

Join Today!

L2J How to Run Server under Router

Initiate Mage
Joined
May 24, 2007
Messages
10
Reaction score
0
Ok Lets we go
1. go to your router and make Port Forwarding Make 9014 Type TCP+UDP To your IP and do The Same With other 7777 ; 2106 ;
2- Go to \gameserver\config\server.properties Open it

Quote
# ================================================================
# General server setting !!! REQUIRED to configure to everyone !!!
# ================================================================

# Bind ip of the gameserver, use 0.0.0.0 to bind on all available IPs
GameserverHostname=Your Lan IP
GameserverPort=7777

# This is transmitted to the clients connecting from an external network, so it has to be a public IP or resolvable hostname
ExternalHostname=Your WAN IP
# This is transmitted to the client from the same network, so it has to be a local IP or resolvable hostname
InternalHostname=Your Lan IP
# Define internal networks (10.0.0.0/8,192.168.0.0/16 is default internal networks)
InternalNetworks=
# Define optional networks and router IPs
# IP (werewolfbg) or fully qualified domain name
# (google.com) that resolves to an IP (use ping to determine if a domain resolves).
# Format: ip,net/mask;ip,net/mask,net/mask
# (mask 192.168.0.0/16 or 192.168.0.0/255.255.0.0 would be 192.168.*.*)
# Note: keep InternalNetworks and OptionalNetworks blank for compatibility with older login server
OptionalNetworks=

# Bind ip of the loginserver, use * to bind on all available IPs
LoginserverHostname=Your Lan IP
LoginserverPort=2106
LoginTryBeforeBan=20

# The Loginserver host and port
LoginPort=9014
LoginHost=Your lan IP
I hope to help thereupon :flag_schw
 
Skilled Illusionist
Joined
Nov 12, 2007
Messages
333
Reaction score
3
Re: [Guide]How to Run Server under Router

# ================================================== ==============
# General server setting !!! REQUIRED to configure to everyone !!!
# ================================================== ==============

# Bind ip of the gameserver, use 0.0.0.0 to bind on all available IPs
GameserverHostname=Your Router ip - ipconfig to see (mine was 192.168.1.101)
GameserverPort=7777

# This is transmitted to the clients connecting from an external network, so it has to be a public IP or resolvable hostname
ExternalHostname=Go to whatismyip.com to see this #
# This is transmitted to the client from the same network, so it has to be a local IP or resolvable hostname
InternalHostname=Your Router ip - ipconfig to see (mine was 192.168.1.101)
# Define internal networks (10.0.0.0/8,192.168.0.0/16 is default internal networks)
InternalNetworks=
# Define optional networks and router IPs
# IP (werewolfbg) or fully qualified domain name
# (google.com) that resolves to an IP (use ping to determine if a domain resolves).
# Format: ip,net/mask;ip,net/mask,net/mask
# (mask 192.168.0.0/16 or 192.168.0.0/255.255.0.0 would be 192.168.*.*)
# Note: keep InternalNetworks and OptionalNetworks blank for compatibility with older login server
OptionalNetworks=

# Bind ip of the loginserver, use * to bind on all available IPs
LoginserverHostname=Your Router ip - ipconfig to see (mine was 192.168.1.101)
LoginserverPort=2106
LoginTryBeforeBan=20

# The Loginserver host and port
LoginPort=9014
LoginHost=Your Router ip - ipconfig to see (mine was 192.168.1.101)
 
Junior Spellweaver
Joined
Jun 4, 2006
Messages
127
Reaction score
1
Re: [Guide]How to Run Server under Router

Don't i need to open ports and etc?
And on what IP the ppl need to connect?
 
Initiate Mage
Joined
Feb 27, 2008
Messages
51
Reaction score
0
Re: [Guide]How to Run Server under Router

Where I Wrong
legenda1 - How to Run Server under Router - RaGEZONE Forums
 
Initiate Mage
Joined
Aug 21, 2008
Messages
4
Reaction score
0
Re: [Guide]How to Run Server under Router

Tnx... For me it work!!!
 
Initiate Mage
Joined
Jun 18, 2006
Messages
3
Reaction score
0
Re: [Guide]How to Run Server under Router

Where I Wrong
legenda1 - How to Run Server under Router - RaGEZONE Forums


put your IP..
not the gateway IP!!!


192.168.0.1 that's de ip of your GATEWAY....
i think your ip is 192.168.0.2 am not shure...
go to start> execute> cmd > ipconfig there is your LAN ip


Srry my bad english
 
Initiate Mage
Joined
Oct 19, 2006
Messages
6
Reaction score
0
Re: [Guide]How to Run Server under Router

Thank for this. I' m totally noob and search & try for days before read this. Very appreciate. Now work fine for me.
 
Initiate Mage
Joined
Oct 31, 2007
Messages
39
Reaction score
0
Re: [Guide]How to Run Server under Router

so this will make my server global?
 
Initiate Mage
Joined
Oct 31, 2007
Messages
39
Reaction score
0
Re: [Guide]How to Run Server under Router

yes if you will add your wan ip

ok my LAN ip is 192.168.1.101 and my WAN ip is 65.31.115.134

I have a router and i did port fowarding for all that lineage needs. i've tried mismatching these ips over and over and i've looked at many guides but i keep getting errors or either i can connect and my friends can't connect. here are my config files, can you guys tell me where i should place my LAN ip and WAN ip to make my server global?

# ================================================================
# General login server setting !!! REQUIRED to configure to everyone !!!
# ================================================================

# Bind ip of the loginserver, use 0.0.0.0 to bind on all available IPs
LoginServerHostname=192.168.1.101
LoginServerPort=2106
GMMinLevel=100

# The port, ip on which login will listen for GameServers
LoginHostname=lineageiiheaven.no-ip.biz
LoginPort=9014

# If set to true any GameServer can register on your login's free slots
AcceptNewGameServer = True

# General server setting!!! REQUIRED to configure to everyone!!!
# ================================================================

# Bind ip of the gameserver, use 0.0.0.0 to bind on all available IPs
GameserverHostname = 192.168.1.101
GameserverPort = 7777

# This is transmitted to the clients connecting from an external network, so it has to be a public IP or resolvable hostname
ExternalHostname = lineageiiheaven.no-ip.biz
# This is transmitted to the client from the same network, so it has to be a local IP or resolvable hostname
InternalHostname = 192.168.1.101
# Note: You can define server hostname for each network in subnets.properties

# The Loginserver host and port
LoginPort = 9014
LoginHost = 192.168.1.101
 
Last edited:
Initiate Mage
Joined
Jan 13, 2009
Messages
17
Reaction score
5
Hi

loginserver.properties not need to be edited?
for me doesn't work, no one from extern network can login
 
Joined
Oct 5, 2006
Messages
4,293
Reaction score
103
# Bind ip of the loginserver, use 0.0.0.0 to bind on all available IPs
LoginServerHostname=0.0.0.0
LoginServerPort=2106
GMMinLevel=100

# The port, ip on which login will listen for GameServers
LoginHostname=lineageiiheaven.no-ip.biz
LoginPort=9014

# If set to true any GameServer can register on your login's free slots
AcceptNewGameServer = True

# General server setting!!! REQUIRED to configure to everyone!!!
# ================================================== ==============

# Bind ip of the gameserver, use 0.0.0.0 to bind on all available IPs
GameserverHostname = 0.0.0.0
GameserverPort = 7777

# This is transmitted to the clients connecting from an external network, so it has to be a public IP or resolvable hostname
ExternalHostname = wan ip
# This is transmitted to the client from the same network, so it has to be a local IP or resolvable hostname
InternalHostname =
# Note: You can define server hostname for each network in subnets.properties

# The Loginserver host and port
LoginPort = 9014
LoginHost = 127.0.0.1
 
Initiate Mage
Joined
Jan 13, 2009
Messages
17
Reaction score
5
Right ;)
No mods in login file, now working fine for me.
I verify again router nat settings and port forwarding was ok but I forget to enable it :d
Now working without any mods in gamesever and login config, just correct forwarding and of course need to be enabled :D

10X 2 all
 
Initiate Mage
Joined
Jan 29, 2007
Messages
10
Reaction score
0
# Bind ip of the loginserver, use 0.0.0.0 to bind on all available IPs
LoginServerHostname=0.0.0.0
LoginServerPort=2106
GMMinLevel=100

# The port, ip on which login will listen for GameServers
LoginHostname=lineageiiheaven.no-ip.biz
LoginPort=9014

# If set to true any GameServer can register on your login's free slots
AcceptNewGameServer = True

# General server setting!!! REQUIRED to configure to everyone!!!
# ================================================== ==============

# Bind ip of the gameserver, use 0.0.0.0 to bind on all available IPs
GameserverHostname = 0.0.0.0
GameserverPort = 7777

# This is transmitted to the clients connecting from an external network, so it has to be a public IP or resolvable hostname
ExternalHostname = wan ip
# This is transmitted to the client from the same network, so it has to be a local IP or resolvable hostname
InternalHostname =
# Note: You can define server hostname for each network in subnets.properties

# The Loginserver host and port
LoginPort = 9014
LoginHost = 127.0.0.1

Don't work for me.... i need help :*:

legenda1 - How to Run Server under Router - RaGEZONE Forums

:alienmental:
 

Attachments

You must be registered for see attachments list
Last edited by a moderator:
Initiate Mage
Joined
Nov 1, 2009
Messages
2
Reaction score
0
My router portals i change from the program "Simple Port Forwarding" Good program.
 
Initiate Mage
Joined
May 4, 2007
Messages
25
Reaction score
0
I have the new freya l2j , and the configs are different can anyone help me ...
So in stead of all the ips in server.config they are in a folder named ipconfig.xml

i will show an example and if anyone can tell whats wrong , my lan ip is 192.168.2.101 my wan ip is 93.113.253.193:

ipconfig.xml
<?xml version="1.0" encoding="UTF-8"?>

<!-- Externalhost here (Internet IP) or Localhost IP for local test -->
<gameserver address="93.113.253.193" 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="192.168.2.101/16" address="192.168.2.101" />
</gameserver>

server.option:
# ---------------------------------------------------------------------------
# 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.1
LoginHost = 192.168.2.101

# 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.
# 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: 7777
GameserverPort = 7777
 
Last edited:
Initiate Mage
Joined
May 16, 2011
Messages
33
Reaction score
0
i see you post this 5 days ago and now am looking for the same thing did you get it or is it still up in the air am running the same server as you
 
Initiate Mage
Joined
May 16, 2011
Messages
33
Reaction score
0
was talking about the new way in the confif folder for lineage where do,s it go on local and i use no ip can u show me please
 
Back
Top