Pages

Tera Online

[Tutorial] Connecting to your java server over the internet
this tutorial will teach you how to connect to your java Tera server over the internet.
Assuming you have followed my other tutorial here on how to compile the java server and connect to it locally,
we will start where we left off in that one.

What you will need:
The compiled java server by Angelis86 (see my other tutorial on how to compile it.)
The launcher by Angelis86
HxD or similar (hexeditor)
Notepad++
XAMPP or similar (webserver)
List.uk
7zip or WinRar

Step 1: Configuring and installing list.uk
Go to your htdocs folder where you installed XAMPP (www folder for others) and make a new folder called tera, then another in that one called launcher
and finally a folder in launcher called realm. It should look like this:
C:\xampp\htdocs\tera\launcher\realm
Download list.uk and put it in the realm folder.
Next right click list.uk and choose edit with Notepad++.
It should look like this:

PLEASE READ:
Below where it says CDATA with a bunch of = marks, disregard them, they are not supposed to be there.
For some reason they won't disappear when i delete them from the post. To clarify its supposed to say <![CDATA[ Localhost]]> etc instead of all the = marks.
<serverlist>
    <server>
        <id>1</id>
        <ip>127.0.0.1</ip>
        <port>7811</port>
        <category sort="2">PVP</category>
        <name raw_name="Localhost">
            <=!=[=C=D=A=T=A=[ Localhost]=]=>
        </name>
        <crowdness sort="1">None</crowdness>
        <open sort="1">Low</open>
        <permission_mask>0x00000000</permission_mask>
        <server_stat>0x00000000</server_stat>
        <popup>
            <=!=[=C=D=A=T=A=[ Unable to access the server at this time. ]=]=>
        </popup>
        <language>en</language>
    </server>
    <server>
        <id>3</id>
        <ip>91.121.152.111</ip>
        <port>7811</port>
        <category sort="2">PVP</category>
        <name raw_name="Angelis Server">
            <=!=[=C=D=A=T=A[ Angelis Server ]=]=>
        </name>
        <crowdness sort="5">None</crowdness>
        <open sort="4">Low</open>
        <permission_mask>0x00000000</permission_mask>
        <server_stat>0x00000000</server_stat>
        <popup>
            <=!=[=C=D=A=T=A=[ Unable to access the server at this time. ]=]=>
        </popup>
        <language>en</language>
    </server>
</serverlist>
Edit the ip of the first Localhost server ip (or both if you like) to your ip.
Save the file.
The next step is to open ports in your router. 7811 TCP/UDP to your internal ip address where the server is located.
You can get the internal IP by going into cmd (Windows key + R and type cmd) and typing ipconfig.
It's the one that says IPv4 and starts (usually) with 192.168....
I will not go into opening the ports further since every router is different. A quick google search on your router should yield the results.


Step 2: Hex editing the Tera launcher.
Extract the launcher to where you installed Tera.
Install HxD and open it.
Open the Tera.en.exe in HxD and click Ctrl + F and type http and search.
Now where it says http://91.121.152.111/tera/launcher/realm/list.uk edit this line letter for letter to your ip address and path to list.uk.
To edit it letter for letter, mark the letter with your mouse and replace it with the letter of your choice.
WARNING! DO NOT ADD letters, if you do you change the bytes of the file and it breaks!


Make sure your path ends with 6B 00 and continues with 00 all the way to the four ÿÿÿÿ.
The letters should now look like this:
....http://127.0.0.1/tera/launcher/realm/list.uk................
where 127.0.0.1 is your ip address.
And the whole block look something like this:
00 00 00 00 68 74 74 70 3A 2F 2F 31 32 37 2E 30  ....http://127.0
2E 30 2E 31 2F 74 65 72 61 2F 6C 61 75 6E 63 68  .0.1/tera/launch
65 72 2F 72 65 61 6C 6D 2F 6C 69 73 74 2E 75 6B  er/realm/list.uk
00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00  ................
Now save the file.
Next start the java server and test the edited tera.en.exe by
starting Launch.bat. Type your credentials and choose en as language.
If the Launch.bat closes and the game don't start you haven't followed the hex step correctly! Redo it and do it right.
If it doesn't close and the game starts you are ready to send this file to the computers you want to connect with over the internet.

Congratulations if you followed all steps correctly you can now connect over the internet!
Enjoy!

zoraswe
Ragezone