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!

[Tutorial] Connecting to your java server over the internet

Newbie Spellweaver
Joined
Feb 2, 2014
Messages
74
Reaction score
22
Hello,
this tutorial will teach you how to connect to your java Tera server over the internet.
Assuming you have followed my other tutorial here: http://forum.ragezone.com/f798/tutorial-compiling-java-emulator-angelis86-996322/ 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 ( ) or ( )




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.

Code:
<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 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:
.... ................
where 127.0.0.1 is your ip address.
And the whole block look something like this:


Code:
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!
 
Last edited:
Newbie Spellweaver
Joined
Apr 18, 2014
Messages
55
Reaction score
3
Thanks, everything works. Almost.
In your post it is:
<=!=[=C=D=A=T=A=[ Localhost]=]=>
When in downloaded file it is:
<![CDATA[ Localhost ]]>
I think that, these "=" have been killing my tries. The client didn't want to start or showed "Can't find SSNL". After I deleted them the client started to work.
 
Newbie Spellweaver
Joined
Feb 2, 2014
Messages
74
Reaction score
22
Ah yes, it's supposed to be without the '='. I'm unsure why they even appeared in the op... In my list.uk its without the '=', will update op.
 
Newbie Spellweaver
Joined
Jan 22, 2014
Messages
10
Reaction score
0
can i use hamachi ip? or another way without hamachi 100% working? i tried with my ip 192.168.. but nothing happened with other connection
 
Newbie Spellweaver
Joined
Feb 2, 2014
Messages
74
Reaction score
22
Not sure if Hamachi works, haven't tested. But go ahead and try it and post back if it works. 192.168.x.x is your local lan ip, only use that one if you want to connect over lan. Here is your external ip: .
 
Newbie Spellweaver
Joined
Jan 22, 2014
Messages
10
Reaction score
0
ok, one question more, on the 2nd pc's need to compile java server? or just on the 1st
 
Newbie Spellweaver
Joined
May 7, 2014
Messages
10
Reaction score
0
Hello,
this tutorial will teach you how to connect to your java Tera server over the internet.
Assuming you have followed my other tutorial here: http://forum.ragezone.com/f798/tutorial-compiling-java-emulator-angelis86-996322/ 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 ( ) or ( )




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 <=!=[=C=D=A=T=A=[ Localhost]=]=> etc instead of all the = marks.

Code:
<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 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:
.... ................
where 127.0.0.1 is your ip address.
And the whole block look something like this:


Code:
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!



Hello you look like a professional on Tera so am just wanting to ask If there is Any way to Hide My ip From the Eu Launcher?? i tried a hidemyIp program but it only hides after the game opens and i need it to start b4 when the launcher opens up for me to Sign In Help please anyone!
 
Newbie Spellweaver
Joined
Feb 2, 2014
Messages
74
Reaction score
22
Not sure what you're asking, are you referring to hiding the ip from official servers?
 
Newbie Spellweaver
Joined
May 7, 2014
Messages
10
Reaction score
0
Well i live in a place where the Launcher Eu gives me ''User authentication Failed'' Basically means that my region / ip doesnt allow for it to be played i was asking if there is anyway to edit the game/launcher to ignore that or and program that can hide the ip On the launcher and not only the Game. any ideas ?
 
Newbie Spellweaver
Joined
Feb 2, 2014
Messages
74
Reaction score
22
If you are referring to playing the game with your own java server, then I don't know what you are talking about, because it should work if you start the server then start the game using launch.bat, enter your id and password and tera.en.exe should start.
 
Initiate Mage
Joined
Jan 10, 2015
Messages
1
Reaction score
0
Hi, sorry but only 1 little question: What could be the problem if the tera.en.exe doesn't even open? (I don't have the launch.bat file cause..... there isn't...so the only way to do is to open tera.en.exe file...). When i try to open it, it says that it's not a valid win32 application. (i placed the tera.en.exe file in c:\programfiles (x86)\GameforgeLive\Games\GBR_eng\TERA.....it's right?)


ps: i followed the entire guide


EDIT: ok i probably have found the problem...the file to open is not tera.en.exe, but the start.bat in C:\xampp\htdocs\tera\src\TeraBuilder\bin\launcher (at least it opens a "strange" tera launcher....)
but the login doesn't find my user/pass :(
 
Last edited:
Back
Top