Hello. my friends developer. The new SVN is online, with our Aion-Core 5.0 which we will upgrade to 5.8. Read more, click here

Jump to content

Setup Aion-Core Developer Emulator on Windows 7 x64 Part.2


Description

Setup Aion-Core Developer Emulator on Windows 7 x64 Part.2

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
http://www.wan-ip.info
If you own dedicated server your LAN IP is also your WAN IP ("External IP Address")

Example; (DEDICATED SERVER (ROOT)

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

# ----------------------------
# 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

# ----------------------------
# 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

# ----------------------------
# 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

# ----------------------------
# 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

<ipconfig default="91.59.81.140">
	
</ipconfig>

network.properties

# ----------------------------
# 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

2. - make a new connection

Posted Image

3. - Make a new user

Posted Image


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

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

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) :

ECHO OFF
CLS
ECHO. 
ECHO This window will close in 5 seconds.
ECHO.
start bin32\AION.bin -ip:91.59.81.140 -port:2106 -cc:1 -lang:enu -noweb -nowebshop -nokicks -ncg -noauthgg -ls -charnamemenu -ingameshop -DEVMODE "con_disable_console 0" -DEVMODE "g_chatlog 1" -DEVMODE "g_auto_disconnect 0"
echo
echo Starting Aion - North American client...
echo
GOTO end
:end 
ping localhost -n 5 > nul
EXIT

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-Core Emulator.
Have fun...


Copyright 2010-2015, by Voidstar, Aion-Core Developer (www.aion-core.net)

NOTE:
Do not distribute this tutorial (content and pics) in any form without my copyrights (credits) deleted, omitted, etc...
Thanks.
Voidstar

Tutorial Videos

Optionally you can add videos from Youtube or Vimeo to your tutorial



Recommended Comments

There are no comments to display.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Add a Comment

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Board Life Status


Board startup date: December 25, 2014 06:24:13
×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use.