new server... need help....

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
deviljin666
Posts: 3
Joined: Tue Feb 05, 2013 12:39 am

new server... need help....

Post by deviljin666 »

version=5769
builddate=04/02/2013 05:01

hello. i have just set up my server. i can log in via lan but my friends cannot. what im doing wrong?... please help me....

<?xml version="1.0" encoding="UTF-8"?>
<!-- Externalhost here deviljin666.no-ip.info or Localhost IP for local test -->
<gameserver address="deviljin666.no-ip.info" 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="deviljin666.no-ip.info" />
<!-- 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>
Arantir
Posts: 151
Joined: Wed Jan 04, 2012 7:10 pm

Re: new server... need help....

Post by Arantir »

deviljin666 wrote: <define subnet="127.0.0.0/8" address="deviljin666.no-ip.info" />
Do you think it's correct? Address should be inside subnet. For this subnet the IP (IP of domain) should at least starts with 127.

How can people keep servers and don't know about nets, subnets and etc.? Never understand it...

Here is example:

Code: Select all

<gameserver address="YOUR_EXTERNAL_IP" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="../data/xsd/ipconfig.xsd">    <define subnet="SUBNET" address="YOUR_INTERNAL_IP" /></gameserver>
Where YOUR_EXTERNAL_IP is the IP internet see you with. You can see it, for example, on http://www.whatismyip.com. You can use domain names also.
YOUR_INTERNAL_IP is IP which you can see on your net-connection directly. For example inside "status window" on you network adapter (for Windows) in the line "ipv4 address". It is the IP which you got from your modem (router) or from provider (directly LAN connection).
SUBNET you can see at the same place (but there is a mask, you could convert it to subnet with many online-services) or in router settings or ask your provider (if you has direct LAN connection).

If you're using dedicated linux server, then for most cases internal IP is just localhost (127.0.0.1 with subnet 127.0.0.0/8). You can try "ipconfig" command for accurate information.
deviljin666
Posts: 3
Joined: Tue Feb 05, 2013 12:39 am

Re: new server... need help....

Post by deviljin666 »

this is a new configuration i made from http://ipconfig.admincp.eu/
but it still dont work... can you help me please?....

<?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="79.107.125.35" 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.1.0/24" address="192.168.1.65" />
</gameserver>
Arantir
Posts: 151
Joined: Wed Jan 04, 2012 7:10 pm

Re: new server... need help....

Post by Arantir »

You also need an opened ports for game/login. If you have router and/or firewall then you should permit external connection through chosen ports.

this:

Code: Select all

# Default: 7777GameserverPort = 7777
and this:

Code: Select all

# Default: 2106LoginserverPort = 2106
deviljin666
Posts: 3
Joined: Tue Feb 05, 2013 12:39 am

Re: new server... need help....

Post by deviljin666 »

i have forwarded those ports... still nothing... i have noticed that in loginserver it sill connect in 127.0.0.1
is that the problem? and if that is the problem how can i fix it?
Arantir
Posts: 151
Joined: Wed Jan 04, 2012 7:10 pm

Re: new server... need help....

Post by Arantir »

deviljin666 wrote:i have noticed that in loginserver it sill connect in 127.0.0.1
What's "it"?
If you have login&game on same machine you should see something like this in login console:

Code: Select all

...Listening for GameServers on 127.0.0.1:9014...Login Server ready on *:2106 
9014 is internal connection port, direct connection between login and game. It means if you use single machine than game should connect to login on same machine, on itself (127.0.0.1, localhost). "Listening on 127.0.0.1:9014" means that only same-machine gameservers could connect to login on 9014, because of even local-network connection will try to connect to 192.168.1.65 or something like, but not to 127.0.0.1 (because connect to 127.0.0.1 means connect to yourself).
2106 is external port, which users connect to. "*" means that loginserver pass connections destined to any address (i.e. any server-machine IP, e.g. 79.107.125.35, 192.168.1.65, 127.0.0.1).

You should have setting like:

Code: Select all

LoginserverHostname = *...LoginHostname = 127.0.0.1
LoginserverHostname is needed to change only in few cases, for example if you use proxy or other routing between internet-connection and server.

When game is connected you should see something like this in login console:

Code: Select all

Updated Gameserver [1] Bartz IP's:192.168.1.65/192.168.1.0/2479.107.125.35/0.0.0.0/0
Which means that gameserver will pass connections destined to 79.107.125.35 and 192.168.1.65 (i.e. to serve machine), and also to localhost as well (by default).

If you are not sure you can check ports by online-services (one of google's firsts links - http://www.yougetsignal.com/tools/open-ports/). Just check if world web really could connect to server on login/game ports.
User avatar
UnAfraid
L2j Veteran
L2j Veteran
Posts: 4199
Joined: Mon Jul 23, 2007 4:25 pm
Location: Bulgaria
Contact:

Re: new server... need help....

Post by UnAfraid »

9014 port must remain localhost only because auto register gameserver is enabled by default.
that port is not for clients but for game servers, so better dont touch it.
Image
Post Reply