- Joined
- Oct 5, 2018
- Messages
- 792
- Reaction score
- 1,184
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
If you own dedicated server your LAN IP is also your WAN IP ("External IP Address")
Example; (DEDICATED SERVER (ROOT)
Now, that you know which is your WAN IP, you will need to change the following configurations;
Chat
chatserver.properties
Loginserver
database.properties
Network.properties
Gameserver
database.properties
ipconfig.xml
network.properties
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
2. - make a new connection
3. - Make a new user
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
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
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) :
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
You must be registered to see links
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
You must be registered to see links
port scanners:
You must be registered to see links
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
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
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
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
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
PHP:
<ipconfig default="91.59.81.140"> </ipconfig>
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
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
You must be registered to see links
PHP:
GRANT ALL
ON *.*
TO Aion IDENTIFIED BY 'root'
WITH GRANT OPTION;
3. - Make a new user
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;
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
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) :
You must be registered to see links
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: