L2JMobius

Helios I can't figure out how to set the config settings for my IP

Freyr · 24 · 12450

Offline Freyr

  • Heir
  • **
    • Posts: 21
Whenever i try to edit the configuration of the loginserver, the login will report a java exception or won't open at all. I can't get around it, can somebody enlight me on this one? Thanks  :-\


Online Mobius

  • Distinguished King
  • *****
    • Posts: 16241
Do not change settings.
Also it could be useful to tell us what you do.


Offline Freyr

  • Heir
  • **
    • Posts: 21
Do not change settings.
Also it could be useful to tell us what you do.

I'm trying to open the server for others to log, for testing purposes.


Offline GMeXiD

  • Black Sheep
  • Knight
  • ***
    • Posts: 97
  • Nothing is impossible
there is a file default.ipconfig.xml

rename ipconfig.xml

enter you IP in that file
and save!



Offline Freyr

  • Heir
  • **
    • Posts: 21
there is a file default.ipconfig.xml

rename ipconfig.xml

enter you IP in that file
and save!

<?xml version="1.0" encoding="UTF-8"?>
<!-- Note: If file is named "ipconfig.xml" this data will be used as network configuration, otherwise server will configure it automatically! -->
<!-- Externalhost here (Internet IP) or Localhost IP for local test -->
<gameserver address="127.0.0.1" 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="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" />
   <define subnet="192.168.0.0/24" address="192.168.0.0" />
   <define subnet="192.168.1.0/24" address="192.168.1.0" />
</gameserver>

I only have to change this ip to mine? What about subnets?



Offline GMeXiD

  • Black Sheep
  • Knight
  • ***
    • Posts: 97
  • Nothing is impossible
there is a file default.ipconfig.xml

rename ipconfig.xml

enter you IP in that file
and save!


<?xml version="1.0" encoding="UTF-8"?>
<!-- Note: If file is named "ipconfig.xml" this data will be used as network configuration, otherwise server will configure it automatically! -->
<!-- Externalhost here (Internet IP) or Localhost IP for local test -->
<gameserver address="127.0.0.1" 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="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" />
   <define subnet="192.168.0.0/24" address="192.168.0.0" />
   <define subnet="192.168.1.0/24" address="192.168.1.0" />
</gameserver>

I only have to change this ip to mine? What about subnets?

yes sir, and make sure ports are forwarded like Mobius said


Offline Freyr

  • Heir
  • **
    • Posts: 21
This is what LoginServer console has when it loads:

[23/10 18:38:13] Listening for GameServers on 127.0.0.1:9014
[23/10 18:38:14] ClientNetworkManager: Listening on 0.0.0.0:2106
[23/10 18:41:30] Updated Gameserver [2] Sieghardt IP's:
[23/10 18:41:30] 127.0.0.1/127.0.0.0/8
[23/10 18:41:30] 10.0.0.0/10.0.0.0/8
[23/10 18:41:30] 172.16.0.0/172.16.0.0/19
[23/10 18:41:30] 192.168.0.0/192.168.0.0/16
[23/10 18:41:30] 91.140.90.86/0.0.0.0/0

And this is what GameServer console has:

[23/10 18:41:30] ClientNetworkManager: Listening on 0.0.0.0:7777
[23/10 18:41:30] LoginServerThread: Connecting to login on 127.0.0.1:9014
[23/10 18:41:30] LoginServerThread: Registered on login as Server 2: Sieghardt

I feel like something is not right, even after i put my IP in ipconfig.xml




Offline Pavlov

  • Baron
  • *****
    • Posts: 214
  • Chief Datapack Developer
    • https://l2jmobius.org/
By default the server files are using your external address. I personally use the No-IP software to automatically assign your address to a DNS name, which you can input as address in your system and then send this system to your friends.


Install it and give it a try, without touching L2J Network Settings :)
Lineage II ยท Server Development


Offline Freyr

  • Heir
  • **
    • Posts: 21
By default the server files are using your external address. I personally use the No-IP software to automatically assign your address to a DNS name, which you can input as address in your system and then send this system to your friends.


Install it and give it a try, without touching L2J Network Settings :)

By the looks of the login/gameserver console it seems they are using local adresss by default. Or am i missing something there? i'm so confused, the configuration in the past used to be so simplified :/


Offline Stayway

  • Duke
  • *****
    • Posts: 684
    • http://l2ahyura.com
Server.ini

line 19 = LoginHost = 127.0.0.1 replace for LoginHost = your IP

Line 50 = URL = jdbc:mysql://localhost/l2jmobius?useUnicode=true&characterEncoding=utf-8&useSSL=false replace it for
URL = jdbc:mysql://YOUR IP (or if database is in your localhost don't change it)/DATABASE NAME?useUnicode=true&characterEncoding=utf-8&useSSL=false

Line 53
Login = YOUR DATABASE USERNAME

Line 56
Password = PASS for YOUR DATABASE if exist


LoginServer.ini

Line 28
LoginHostname = YOUR IP

Line 50 = URL = jdbc:mysql://localhost/l2jmobius?useUnicode=true&characterEncoding=utf-8&useSSL=false replace it for
URL = jdbc:mysql://YOUR IP (or if database is in your localhost don't change it)/DATABASE NAME?useUnicode=true&characterEncoding=utf-8&useSSL=false

Line 52
Login = YOUR DATABASE USERNAME

Line 56
Password = PASS for YOUR DATABASE if exist


If it doesn't work check your ports in your router and firewall .



Offline Freyr

  • Heir
  • **
    • Posts: 21
Server.ini

line 19 = LoginHost = 127.0.0.1 replace for LoginHost = your IP

Line 50 = URL = jdbc:mysql://localhost/l2jmobius?useUnicode=true&characterEncoding=utf-8&useSSL=false replace it for
URL = jdbc:mysql://YOUR IP (or if database is in your localhost don't change it)/DATABASE NAME?useUnicode=true&characterEncoding=utf-8&useSSL=false

Line 53
Login = YOUR DATABASE USERNAME

Line 56
Password = PASS for YOUR DATABASE if exist


LoginServer.ini

Line 28
LoginHostname = YOUR IP

Line 50 = URL = jdbc:mysql://localhost/l2jmobius?useUnicode=true&characterEncoding=utf-8&useSSL=false replace it for
URL = jdbc:mysql://YOUR IP (or if database is in your localhost don't change it)/DATABASE NAME?useUnicode=true&characterEncoding=utf-8&useSSL=false

Line 52
Login = YOUR DATABASE USERNAME

Line 56
Password = PASS for YOUR DATABASE if exist


If it doesn't work check your ports in your router and firewall .

When i put anything else than 127.0.0.1 on the red part, the login console will open for 1 second and then close. Like it's hardcoded to not accept anything else than local ip.


Online Mobius

  • Distinguished King
  • *****
    • Posts: 16241
Additional to your current wrong settings, wrong use for the word "hardcoded". :D
Files are not limited in any way.


Offline Freyr

  • Heir
  • **
    • Posts: 21
Additional to your current wrong settings, wrong use for the word "hardcoded". :D
Files are not limited in any way.

I did not want to make it sound like that, i'm just surprised it won't run if you put any other ip other than local :D The mobius icon appears just before console tries to launch, but after that it closes. Gameserver console is fine though.


Offline Stayway

  • Duke
  • *****
    • Posts: 684
    • http://l2ahyura.com
I test it in my windows 10 helios free version and the subscriber one and I din't have this problem . So I believe it can be your system operative or your java. I can't see other problem here . Tell me what OS you use please.