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!

How to Make your AION Server Public

Joined
Oct 5, 2018
Messages
773
Reaction score
1,142
credits reserved to Voidstar source site:

How to Make your AION Server Public

With a Home PC and dynamic IP or a dedicated server called Root Server.

First of all, we need to find out what IC (Internet Connection) we have. This can be with a fixed IP Address or a dynamic IP Address, The last one is not indicated to use to host a gameserver because usually your IPS will change it once i 24 hours. The Chatserver doesn't work with dynamic IP, so you will need to set it to "localhost" or "127.0.0.1", but more indicated will be yout LAN IP Address, for example; 192.168.2.10.

So, we need to find out what our "External IP Address" or WAN IP (Wide Area Network Internet Address)
To find out your WAN visit port scanners:
If you own dedicated server your LAN IP is also your WAN IP ("External IP Address")

Example; (DEDICATED SERVER (ROOT)
PHP:
Your Current Internet (WAN) IP:
 91.59.81.140
Now, that you know which is your WAN IP, you will need to change the following configurations;

Chat
chatserver.properties
PHP:
# ----------------------------# Chat Server Config's:
# ----------------------------

# CS will listen for connections on specified address
# need to be your external Ip of your Live server
chatserver.network.client.address =  91.59.81.140:10241

# Address that will be used by CS to listen for GS connections
chatserver.network.gameserver.address =  91.59.81.140:9021

# Password to match for successful authentication of the game server
# NOTE: Don't forget to add your password! chatserver.network.gameserver.password = your_password
Loginserver
database.properties
PHP:
# ----------------------------# Database Config's:
# ----------------------------

# This class represents database driver class that will be used while connecting to database
database.driver=com.mysql.jdbc.Driver

# This is database url. 
database.url=jdbc:mysql://91.59.81.140:3306/ac_47_server_ls?useUnicode=true&characterEncoding=UTF-8&autoReconnect=true

# Database user
database.user= root

# Database password
# NOTE: Change this! Root password is not safe! database.password= your_password
Network.properties
PHP:
# ----------------------------# Network Config's:
# ----------------------------

# LoginServer will listen for connections on specified port
loginserver.network.client.port=2106

# LoginServer will bind specified network interface
# * - bind all interfaces
loginserver.network.client.host= 91.59.81.140

# How many times player can try to login before he get's banned for brute forcing
loginserver.network.client.logintrybeforeban=5

# For what time in minutes player should be banned in case of brute forcing
loginserver.network.client.bantimeforbruteforcing=15

# Host that will be used by LS to listen for GS connections
loginserver.network.gameserver.host=  91.59.81.140

# Port that will be used by LS to listen for GS connections loginserver.network.gameserver.port=9014
Gameserver
database.properties
PHP:
# ----------------------------# Database Config's:
# ----------------------------

# This class represents database driver class that will be used while connecting to database
database.driver = com.mysql.jdbc.Driver

# This is database url.
database.url = jdbc:mysql:/91.59.81.140:3306/ac_47_server_gs?useUnicode=true&characterEncoding=UTF-8

# Database user
database.user = root

# Database password
# NOTE: Change this! Root password is not safe! database.password = your_password
ipconfig.xml
PHP:
<ipconfig default="91.59.81.140">     </ipconfig>
network.properties
PHP:
# ----------------------------# Network Config's:
# ----------------------------

# Port that will be used to listen for client connections
gameserver.network.client.port = 7777

# Host that will be used to listen for client connections
gameserver.network.client.host =  91.59.81.140

# Maximum online players on the server
gameserver.network.client.maxplayers = 400

# Address of login server
gameserver.network.login.address = 91.59.81.140:9014

# Id of this game server
gameserver.network.login.gsid = 37

# Password of this game server
gameserver.network.login.password = your_password

# Address of chat server
# Ip and port of chat server should be accessible from
# 1) game server
# 2) all connected clients
gameserver.network.chat.address = 91.59.81.140:9021

# Password of this game server for chat server gameserver.network.chat.password = your_password
We are done with the Configs

Database

Start your Navicat or what ever you use, and go to your Aion Databeses.
You will need your Loginserver database, ac_47_server_ls.

Inside the database "ac_47_server_ls" locate the table called "gameservers".

First field is "Id" - put here your preferred #Server IDs, listed in the Part1 (for example 37, that will be "Thor")
Second fiels is "mask" - put here your LAN IP; 91.59.81.140 if you own a dedicated server. If you have a dynamic ip homeserver, just the same, put there your LAN IP; 192.168.2.20
Third field is "password" - put there the password from the configs.

NOTE:

Using localhost or 127.0.0.1, for your database, you will be not able to route you WAN IP to it. With Localhost or 127.0.0.1 the database can be accessed only from your computer.
If you want to invite some friends from other computer or from outside your LAN, you will need to setup your MySQL connection to your Local Area Network (LAN) and not to Localhost.

Your LAN IP Address in case you have a Dynamic IP or LAN IP Address in case you have a dedicated server, you will need to register it with the granted access rights, same as the default 127.0.0.1.
For external access to your server, Homeserver or Dedicated Server, you need your LAN IP, not localhost/127.0.0.1. That's because you can not route from outside to localhost/127.0.0.1. just to your LAN IP = 192.168.2.20
For that you will need to open a mySql console with Navicat or other tool and granted the rights your fixed ip.
For example: 91.59.81.140 or 192.168.2.20

1. - don't forget your MySQL Config, to grant external access:
[mysqld]
bind-address= 0.0.0.0

PHP:
GRANT ALL
ON *.*
TO Aion IDENTIFIED BY 'root'
WITH GRANT OPTION;
2. - make a new connection
dezalmado - How to Make your AION Server Public - RaGEZONE Forums

3. - Make a new user

dezalmado - How to Make your AION Server Public - RaGEZONE Forums

mysql> grant all privileges on ac_47_server_gs.* to 'root'@192.168.2.20' identified by 'OMG_tHis_is_mYpAssW0Rd##';
mysql> grant all privileges on ac_47_server_ls.* to 'root'@'192.168.2.20' identified by 'OMG_tHis_is_mYpAssW0Rd##';
mysql> flush privileges
mysql> quit

For all databases and from all extarnal server access, use
PHP:
GRANT ALL PRIVILEGES ON *.* TO 'root'@'%' IDENTIFIED BY 'OMG_tHis_is_mYpAssWORd##' WITH GRANT OPTION;
Same if you have a dedicated server, with 91.59.81.140

Now we can close Navicat as it isn't needed anymore.
Close, save and your done.
Now we need to open the ports on our router and allow java through the Firewall.

Inside your Router we need to look for Port Fowarding or Virtual Server for ports.
Once we figured out how our own router works we need to open the following ports; 3306, 7777, 2106, 9014, 9021.
All this ports must be redirected to our intern IPv4 Address, LAN IP Address, for example: 192.168.2.20
PHP:
Ethernet adapter Local Area Connection:
   IPv4 Address. . . . . . . . . . . : 192.168.2.20
   Subnet Mask . . . . . . . . . . . : 255.255.255.0    Default Gateway . . . . . . . . . : 192.168.2.1
Go to the control panel and click windows firewall. Click on "Allow a program or feature through Windows Firewall" (for Windows7 may be different for vista). In the new window click "Allow another program". Goto browse and navigate to the Java bin folder again. Select Java.exe and hit open then click Add. Scroll down to "Java™ Platform SE binary make sure all 3 boxes are checked. Hit ok and your done your server is ready to be public.

Now to enter the server we only need a launcher. Open up notepad and copy the next code in (Change [external ip] to your ip) :
PHP:
@echo offecho Starting Aion 4.7 Server...start bin32\Aion.bin -ip:91.59.81.140 -port:2106 -cc:1 -lang:enu -noweb -nowebshop -nokicks -ncg -noauthgg -charnamemenu -ingameshop -win10-mouse-fix

Save this batch as, MyAion_Server.bat and you can share it to your friends.

The difference between a Home Server and a Dedicated Server is that you own a fixed WAN IP that never changes and your server can be accessed any time, against
a Home Server that own only a dynamic WAN IP Address and you need to make it public every time he is changed.

I hope that also this Tutorial will help you to host your Aion Emulator.
Have fun...



you can use MySQL 5.5 Command Line Client not search in your windows search bar "MySQL 5.5 Command Line Client" open it and pasteGRANT ALL and enterON *.* and enterTO Aion IDENTIFIED BY 'root'where this Aion name you put whatever name you want will be the name of your MYSQL database.where this root will be your MYSQL password.WITH GRANT OPTION;and enter
 
Last edited:
Joined
Oct 5, 2018
Messages
773
Reaction score
1,142
Does not seem to be the correct address, anyway this can also be used...



Port Scanners
I don't understand why it got that way, it's only when you click link it opens a suspicious page O more if you copy the link and paste it opens the reference page I placed
 
Banned
Banned
Joined
May 26, 2020
Messages
235
Reaction score
98
What is not correct with my tutorial?
It was just an example, using dynamic IP or dedicated IP from your root host.

As private, with dynamic IP you never need to put your dynamic IP in the gameserver settings, because your dynamic IP will be routed from your DSL router to your LAN IP (in my case 192.168.2.20)

However, you external player will need your dynamic IP (WAN IP) to be able to connect to your gameserver which use 192.168.2.20 LAN IP, in their launcher.

Just in this case you will need to know your dynamic IP.

The best way to show your dynamic ip to people who wish to connect to your gameserver, si to use this this script,
somewhere in your website;

Code:
<?php
// PHP program to obtain IP address of
// the server
// Create a variable to store the
// server ip address

$ip = $_SERVER['REMOTE_ADDR'];

// Printing the stored address
echo "IP Address is: $ip", "<br>";
  ?>
 
Last edited:
Joined
Oct 5, 2018
Messages
773
Reaction score
1,142
What is not correct with my tutorial?
It was just an example, using dynamic IP or dedicated IP from your root host.

As private, with dynamic IP you never need to put your dynamic IP in the gameserver settings, because your dynamic IP will be routed from your DSL router to your LAN IP (in my case 192.168.2.20)

However, you external player will need your dynamic IP (WAN IP) to be able to connect to your gameserver which use 192.168.2.20 LAN IP, in their launcher.

Just in this case you will need to know your dynamic IP.

The best way to show your dynamic ip to people who wish to connect to your gabeserver, si to use this this script,
somewhere in your website;








Code:
[COLOR=#666666]<?php[/COLOR]// PHP program to obtain IP address of
// the server
// Create a variable to store the
// server ip address

$ip = $_SERVER['REMOTE_ADDR'];

// Printing the stored address
echo "IP Address is: $ip", "<br>"; [COLOR=#666666]  ?>[/COLOR]
I don't understand much about it so I just did the test by Hamachi with this tutorial I found on the forum I found it very interesting and explanatory but it would be nice for someone who has knowledge to do something more complete and post here on the forum.
 
Banned
Banned
Joined
May 26, 2020
Messages
235
Reaction score
98
Hamachi is something else, it used just for share your LAN.
And all pleayers need
Hamachi .

Better a Dynamic DNS Provider like noip.com
 
Initiate Mage
Joined
Dec 9, 2021
Messages
2
Reaction score
0
Hope you have sorted this issue. But in any case you could try out .
Should be helpful with monitoring and identifying this or similar kinds of errors.
 
Newbie Spellweaver
Joined
May 1, 2022
Messages
9
Reaction score
0
credits reserved to Voidstar source site:

How to Make your AION Server Public

With a Home PC and dynamic IP or a dedicated server called Root Server.

First of all, we need to find out what IC (Internet Connection) we have. This can be with a fixed IP Address or a dynamic IP Address, The last one is not indicated to use to host a gameserver because usually your IPS will change it once i 24 hours. The Chatserver doesn't work with dynamic IP, so you will need to set it to "localhost" or "127.0.0.1", but more indicated will be yout LAN IP Address, for example; 192.168.2.10.

So, we need to find out what our "External IP Address" or WAN IP (Wide Area Network Internet Address)
To find out your WAN visit port scanners:
If you own dedicated server your LAN IP is also your WAN IP ("External IP Address")

Example; (DEDICATED SERVER (ROOT)
PHP:
Your Current Internet (WAN) IP:
 91.59.81.140
Now, that you know which is your WAN IP, you will need to change the following configurations;

Chat
chatserver.properties
PHP:
# ----------------------------# Chat Server Config's:
# ----------------------------

# CS will listen for connections on specified address
# need to be your external Ip of your Live server
chatserver.network.client.address =  91.59.81.140:10241

# Address that will be used by CS to listen for GS connections
chatserver.network.gameserver.address =  91.59.81.140:9021

# Password to match for successful authentication of the game server
# NOTE: Don't forget to add your password! chatserver.network.gameserver.password = your_password
Loginserver
database.properties
PHP:
# ----------------------------# Database Config's:
# ----------------------------

# This class represents database driver class that will be used while connecting to database
database.driver=com.mysql.jdbc.Driver

# This is database url. 
database.url=jdbc:mysql://91.59.81.140:3306/ac_47_server_ls?useUnicode=true&characterEncoding=UTF-8&autoReconnect=true

# Database user
database.user= root

# Database password
# NOTE: Change this! Root password is not safe! database.password= your_password
Network.properties
PHP:
# ----------------------------# Network Config's:
# ----------------------------

# LoginServer will listen for connections on specified port
loginserver.network.client.port=2106

# LoginServer will bind specified network interface
# * - bind all interfaces
loginserver.network.client.host= 91.59.81.140

# How many times player can try to login before he get's banned for brute forcing
loginserver.network.client.logintrybeforeban=5

# For what time in minutes player should be banned in case of brute forcing
loginserver.network.client.bantimeforbruteforcing=15

# Host that will be used by LS to listen for GS connections
loginserver.network.gameserver.host=  91.59.81.140

# Port that will be used by LS to listen for GS connections loginserver.network.gameserver.port=9014
Gameserver
database.properties
PHP:
# ----------------------------# Database Config's:
# ----------------------------

# This class represents database driver class that will be used while connecting to database
database.driver = com.mysql.jdbc.Driver

# This is database url.
database.url = jdbc:mysql:/91.59.81.140:3306/ac_47_server_gs?useUnicode=true&characterEncoding=UTF-8

# Database user
database.user = root

# Database password
# NOTE: Change this! Root password is not safe! database.password = your_password
ipconfig.xml
PHP:
<ipconfig default="91.59.81.140">     </ipconfig>
network.properties
PHP:
# ----------------------------# Network Config's:
# ----------------------------

# Port that will be used to listen for client connections
gameserver.network.client.port = 7777

# Host that will be used to listen for client connections
gameserver.network.client.host =  91.59.81.140

# Maximum online players on the server
gameserver.network.client.maxplayers = 400

# Address of login server
gameserver.network.login.address = 91.59.81.140:9014

# Id of this game server
gameserver.network.login.gsid = 37

# Password of this game server
gameserver.network.login.password = your_password

# Address of chat server
# Ip and port of chat server should be accessible from
# 1) game server
# 2) all connected clients
gameserver.network.chat.address = 91.59.81.140:9021

# Password of this game server for chat server gameserver.network.chat.password = your_password
We are done with the Configs

Database

Start your Navicat or what ever you use, and go to your Aion Databeses.
You will need your Loginserver database, ac_47_server_ls.

Inside the database "ac_47_server_ls" locate the table called "gameservers".

First field is "Id" - put here your preferred #Server IDs, listed in the Part1 (for example 37, that will be "Thor")
Second fiels is "mask" - put here your LAN IP; 91.59.81.140 if you own a dedicated server. If you have a dynamic ip homeserver, just the same, put there your LAN IP; 192.168.2.20
Third field is "password" - put there the password from the configs.

NOTE:

Using localhost or 127.0.0.1, for your database, you will be not able to route you WAN IP to it. With Localhost or 127.0.0.1 the database can be accessed only from your computer.
If you want to invite some friends from other computer or from outside your LAN, you will need to setup your MySQL connection to your Local Area Network (LAN) and not to Localhost.

Your LAN IP Address in case you have a Dynamic IP or LAN IP Address in case you have a dedicated server, you will need to register it with the granted access rights, same as the default 127.0.0.1.
For external access to your server, Homeserver or Dedicated Server, you need your LAN IP, not localhost/127.0.0.1. That's because you can not route from outside to localhost/127.0.0.1. just to your LAN IP = 192.168.2.20
For that you will need to open a mySql console with Navicat or other tool and granted the rights your fixed ip.
For example: 91.59.81.140 or 192.168.2.20

1. - don't forget your MySQL Config, to grant external access:
[mysqld]
bind-address= 0.0.0.0

PHP:
GRANT ALL
ON *.*
TO Aion IDENTIFIED BY 'root'
WITH GRANT OPTION;
2. - make a new connection
dezalmado - How to Make your AION Server Public - RaGEZONE Forums

3. - Make a new user

dezalmado - How to Make your AION Server Public - RaGEZONE Forums

mysql> grant all privileges on ac_47_server_gs.* to 'root'@192.168.2.20' identified by 'OMG_tHis_is_mYpAssW0Rd##';
mysql> grant all privileges on ac_47_server_ls.* to 'root'@'192.168.2.20' identified by 'OMG_tHis_is_mYpAssW0Rd##';
mysql> flush privileges
mysql> quit

For all databases and from all extarnal server access, use
PHP:
GRANT ALL PRIVILEGES ON *.* TO 'root'@'%' IDENTIFIED BY 'OMG_tHis_is_mYpAssWORd##' WITH GRANT OPTION;
Same if you have a dedicated server, with 91.59.81.140

Now we can close Navicat as it isn't needed anymore.
Close, save and your done.
Now we need to open the ports on our router and allow java through the Firewall.

Inside your Router we need to look for Port Fowarding or Virtual Server for ports.
Once we figured out how our own router works we need to open the following ports; 3306, 7777, 2106, 9014, 9021.
All this ports must be redirected to our intern IPv4 Address, LAN IP Address, for example: 192.168.2.20
PHP:
Ethernet adapter Local Area Connection:
   IPv4 Address. . . . . . . . . . . : 192.168.2.20
   Subnet Mask . . . . . . . . . . . : 255.255.255.0    Default Gateway . . . . . . . . . : 192.168.2.1
Go to the control panel and click windows firewall. Click on "Allow a program or feature through Windows Firewall" (for Windows7 may be different for vista). In the new window click "Allow another program". Goto browse and navigate to the Java bin folder again. Select Java.exe and hit open then click Add. Scroll down to "Java™ Platform SE binary make sure all 3 boxes are checked. Hit ok and your done your server is ready to be public.

Now to enter the server we only need a launcher. Open up notepad and copy the next code in (Change [external ip] to your ip) :
PHP:
@echo offecho Starting Aion 4.7 Server...start bin32\Aion.bin -ip:91.59.81.140 -port:2106 -cc:1 -lang:enu -noweb -nowebshop -nokicks -ncg -noauthgg -charnamemenu -ingameshop -win10-mouse-fix

Save this batch as, MyAion_Server.bat and you can share it to your friends.

The difference between a Home Server and a Dedicated Server is that you own a fixed WAN IP that never changes and your server can be accessed any time, against
a Home Server that own only a dynamic WAN IP Address and you need to make it public every time he is changed.

I hope that also this Tutorial will help you to host your Aion Emulator.
Have fun...



you can use MySQL 5.5 Command Line Client not search in your windows search bar "MySQL 5.5 Command Line Client" open it and pasteGRANT ALL and enterON *.* and enterTO Aion IDENTIFIED BY 'root'where this Aion name you put whatever name you want will be the name of your MYSQL database.where this root will be your MYSQL password.WITH GRANT OPTION;and enter



i did all the procedures you mentioned, but the following error occurs in the login server.


PHP:
Starting Aion Lightning - Login Server.
01:10:27.843 INFO [main]: - Using default implementation for ThreadExecutor
01:10:27.857 INFO [main]: - Initialized Scheduler Signaller of type: class org.quartz.core.SchedulerSignalerImpl
01:10:27.858 INFO [main]: - Quartz Scheduler v.2.1.7 created.
01:10:27.859 INFO [main]: - RAMJobStore initialized.
01:10:27.860 INFO [main]: - Scheduler meta-data: Quartz Scheduler (v2.1.7) 'QuartzScheduler' with instanceId 'NON_CLUSTERED'
Scheduler class: 'org.quartz.core.QuartzScheduler' - running locally.
NOT STARTED.
Currently in standby mode.
Number of jobs executed: 0
Using thread pool 'org.quartz.simpl.SimpleThreadPool' - with 1 threads.
Using job-store 'org.quartz.simpl.RAMJobStore' - which does not support persistence. and is not clustered.

01:10:27.861 INFO [main]: - Quartz scheduler 'QuartzScheduler' initialized from an externally provided properties instance.
01:10:27.861 INFO [main]: - Quartz scheduler version: 2.1.7
01:10:27.861 INFO [main]: - Scheduler QuartzScheduler_$_NON_CLUSTERED started.
01:10:27.861 INFO [main]: - 2022-05-02 01-10-27
01:10:27.862 INFO [main]: - Loading: myls.properties
01:10:27.862 INFO [main]: - No override properties found
01:10:27.879 INFO [main]: - Loading: ./config/network/network.properties
01:10:27.887 INFO [main]: - Loading: ./config/network/svstats.properties
01:10:27.888 INFO [main]: - Loading: ./config/network/commons.properties
01:10:27.889 INFO [main]: - Loading: ./config/network/database.properties
01:10:32.645 INFO [main]: - Successfully connected to database
01:10:33.329 INFO [main]: - Loaded 9 DAO implementations.
01:10:33.344 INFO [main]: - ThreadPoolManager: Initialized with 23 scheduler, 11 instant, 0 long running thread(s).
01:10:33.345 INFO [main]: - Initializing Key Generator...
01:10:33.866 INFO [main]: - GameServerTable loaded 1 registered GameServers.
01:10:33.875 INFO [main]: - BannedIpController loaded 0 IP bans.
01:10:33.897 INFO [main]: - Server listening on IP: !<My external ip address>! Port 9014 for Gs Connections
Exception in thread "main" java.lang.Error: NioServer Initialization Error!
at com.aionemu.commons.network.NioServer.connect(NioServer.java:137)
at com.aionemu.loginserver.LoginServer.main(LoginServer.java:142)


can you help me? :(:
 
Back
Top