[Guide] Public NON hamachi & Port Forwarding

07/10/2011 02:05 lobo161#1
How to make your dekaron public NON hamachi!

You must have your server xD

Go to your server usually located in C: dekaronserver (or what ever you named it)
Open Cast > config.ini (open with notpad)
Change all ips to your external ip. ( whatsmyip.org to find your external ip)
You will do this for the following;
DekaronServer,
Login,
Session.
Once you have this done, go to your share folder and
open channellist.csv loginlist.csv and change
all the ips to your external ip. (Make sure you do this in both shares)

Once you have this done. You are ready to start your server UNLESS
you have a router. Then you must forward these ports

50005
7880
80 (webhost)

For those that do not know how to forward ports here is a short guide.

You are going to need to know your internal IP. To check this out go here
go to (run) type in cmd then press "ok"

once your command prompt is open type this

(ipconfig) Look for

Ethernet adapter Local Area Connection:

Connection-specific DNS Suffix . :
Link-local IPv6 Address . . . . . : fe80::2c07:c5aa:fcd5:3178%11
IPv4 Address. . . . . . . . . . . : 192.168.1.3 <------ This is the number you will need
Subnet Mask . . . . . . . . . . . : 255.255.255.0 this is your internal IP.
Default Gateway . . . . . . . . . : 192.168.1.1


once toy have this you will need to know how to access your router. You can normally go to
google and lookup your access link and defalt password.

once you have this go to Port Forwarding or for linksys it says Applications and Gaming.

for Linksys you will put your port like this


[Only registered and activated users can see links. Click Here To Register...]




For NetGear You will make your port this way

Go to Port Forwarding
Add Custom Service

Servis Name: dk-1 (or what ever you want to be)
Service Type: TCP/UDP
Starting Port: 50005
Ending Port: 50005
Server IP Address: 192.168.1.# (extermal IP)


Once you have done this with all your ports you are ready to go!


Congratz you did it!! YAY!



If i helped you please say thx xD
07/10/2011 02:18 [DEV]Harmony#2
servantlist.csv is not needed, otherwise nice guide.
07/10/2011 02:18 PyrexiaStudios#3
Umm if you foward your ports you dont have to change your ip in your ini's they should remain 127.0.0.1 but good guide none the less
07/10/2011 03:35 lobo161#4
xD im just trying to give back since i been such a leecher. I hope that once i get better to give more guides for people, or contribute something of nice value. anyway
Thanks
07/10/2011 03:55 =Warmonger=#5
You don't need to edit channellist.csv, loginlist.csv, and servantlist.csv as the server doesn't even use them (could be wrong but I know dekaronserver.exe doesn't even call them). Also DekaronServer + Session server configs should read 127.0.0.1 (loopback) as they should be pointers for only stuff like the database server and other server files. Also port 7882 doesn't need to be forwarded its another internal port probably for cross communication between the server files.
07/10/2011 05:52 lobo161#6
You don't need to edit channellist.csv, loginlist.csv, and servantlist.csv as the server doesn't even use them
If people dont edit that then how would anyone connect to their server?



well anyway i just put what works for me, I have never had a problem using this method and nobody has ever had a problem connecting to my play server so if it works then there shouldnt be a problem at all xD but thanks for letting me know ^^
08/19/2011 02:56 ihatehacks#7
Quote:
Originally Posted by lobo161 View Post
Go to your server usually located in C:
Change all ips to your external ip
You will do this for the following;
Open Cast -> config.ini
DekaronServer -> config.ini
Login -> config.ini
Session -> config.ini

Once you have this done, go to your share folder and
open channellist.csv loginlist.csv and change
all the ips to your external ip.

Once you have this done. You are ready to start your server UNLESS
you have a router. Then you must forward these ports

50005
7880
80

For those that do not know how to forward ports here is a short guide.

You are going to need to know your internal IP.
press start -> type in cmd then press enter

once your command prompt is open type this
(ipconfig) Look for

Ethernet adapter Local Area Connection:

Connection-specific DNS Suffix . :
Link-local IPv6 Address . . . . . : fe80::2c07:c5aa:fcd5:3178%11
IPv4 Address. . . . . . . . . . . : 192.168.1.3 <------ This is the number you will need
Subnet Mask . . . . . . . . . . . : 255.255.255.0 this is your internal IP.
Default Gateway . . . . . . . . . : 192.168.1.1


once toy (what is toy?) have this you will need to know how to access your router. You can normally go to
google and lookup your access link and defalt password.

once you have this go to Port Forwarding or for linksys it says Applications and Gaming.

for Linksys you will put your port like this


[Only registered and activated users can see links. Click Here To Register...]


Once you have done this with all your ports you are ready to go!
Congratz you did it!! YAY!

If i helped you please say thx xD
now my problem is if i have all the IPs to my externl IP as you put it (192.....) only i connect to the game.
when i replace the IPs with (68.....) ((the one from whatsmyip)) nothing works not even i can connect.


cast.config -> 68.....
dekaron.config -> all 127.0.0.1
login.config -> 68.....
session -> 127..
share folder stuff -> 68.....

it wont even work now, but if all those are:

cast.config -> 192.....
dekaron.config -> all 192.....
login.config -> 192.....
session -> 192.....
share folder stuff -> 192.....

only i can connect.

EDIT1:
tried using all
cast.config -> 68.....
dekaron.config -> all 68
login.config -> 68.....
session -> 68..
share folder stuff -> 68.....
(result, didnt work)


EDIT2: tried this combo
cast.config -> 127.....
dekaron.config -> all 127
login.config -> 68.....
session -> 127..
share folder stuff -> 68.....

THIS HAS 0 ERRORS in dbmon but i cant connect nor can anyone else, but im guessing this is it i just need to forward ports??
can i get a legit walkthrough of port forwarding and do i have to do it on the host or server.



EDIT3:
did everything with this setup
cast.config -> 192.....
dekaron.config -> all 192
login.config -> 68.....
session -> 192..
share folder stuff -> 68.....

and no errors in dbmon but i cant connect.. problem with ports?? or what


ive forwarded my ports in my router. here:
[Only registered and activated users can see links. Click Here To Register...]

how do i get this to really work right....

if anyone wants heres my msn -> [Only registered and activated users can see links. Click Here To Register...]
08/19/2011 10:40 =Warmonger=#8
Quote:
Originally Posted by ihatehacks View Post
now my problem is if i have all the IPs to my externl IP as you put it (192.....) only i connect to the game.
when i replace the IPs with (68.....) ((the one from whatsmyip)) nothing works not even i can connect.


cast.config -> 68.....
dekaron.config -> all 127.0.0.1
login.config -> 68.....
session -> 127..
share folder stuff -> 68.....

it wont even work now, but if all those are:

cast.config -> 192.....
dekaron.config -> all 192.....
login.config -> 192.....
session -> 192.....
share folder stuff -> 192.....

only i can connect.

EDIT1:
tried using all
cast.config -> 68.....
dekaron.config -> all 68
login.config -> 68.....
session -> 68..
share folder stuff -> 68.....
(result, didnt work)


EDIT2: tried this combo
cast.config -> 127.....
dekaron.config -> all 127
login.config -> 68.....
session -> 127..
share folder stuff -> 68.....

THIS HAS 0 ERRORS in dbmon but i cant connect nor can anyone else, but im guessing this is it i just need to forward ports??
can i get a legit walkthrough of port forwarding and do i have to do it on the host or server.



EDIT3:
did everything with this setup
cast.config -> 192.....
dekaron.config -> all 192
login.config -> 68.....
session -> 192..
share folder stuff -> 68.....

and no errors in dbmon but i cant connect.. problem with ports?? or what


ive forwarded my ports in my router. here:
[Only registered and activated users can see links. Click Here To Register...]

how do i get this to really work right....

if anyone wants heres my msn -> [Only registered and activated users can see links. Click Here To Register...]
Change all the ports in your config files to 127.0.0.1 and only change login servers ip to your external. And channellist.csv, loginlist.csv, and servantlist.csv all use your external IP as well. That should get the server up for public access. Also note that port 5005 is wrong it needs to be 50005.
08/19/2011 15:15 6shadow6#9
you don't need change ip in loginlist and channellist in your server side, because your server MSSQL listens on all available on your computer, IP and ports. as localhost = 127.0.0.1 and the internal ip = 192.168.x.x i have set all ip in Dekaronserver to 127.0.0.1 and all ppl can login and connect to gameserver
08/19/2011 19:43 ihatehacks#10
cast.config -> 127.....
dekaron.config -> all 127
login.config -> 68.....
session.config -> 127..
share folder stuff -> 68.....

fixed the port from 5005 to 50005, still nothing.
and in the router options its forwarded to the hosts internal IP, not servers (cause server is 192.168.21.xxx, and host is 192.168.1.xxx and router options wont let me change 1 -> 21, so i guess this is right)

*note: restarted both server/client after editing the IPs/Port/Router settings.*

im running on win7 dont know if that makes any difference
win7 host, winserver 2003 on vmware
08/19/2011 23:12 6shadow6#11
there is my prove SS from DBmoon

[Only registered and activated users can see links. Click Here To Register...]

[Only registered and activated users can see links. Click Here To Register...]

any question ?? :)

Quote:
Originally Posted by ihatehacks View Post
cast.config -> 127.....
dekaron.config -> all 127
login.config -> 68.....
session.config -> 127..
share folder stuff -> 68.....

fixed the port from 5005 to 50005, still nothing.
and in the router options its forwarded to the hosts internal IP, not servers (cause server is 192.168.21.xxx, and host is 192.168.1.xxx and router options wont let me change 1 -> 21, so i guess this is right)

*note: restarted both server/client after editing the IPs/Port/Router settings.*

im running on win7 dont know if that makes any difference
win7 host, winserver 2003 on vmware
if you use VMware just setup VMware briged and select your network cart thats all

sorry for DB post :/
08/20/2011 04:28 ihatehacks#12
Quote:
Originally Posted by 6shadow6 View Post
there is my prove SS from DBmoon

[Only registered and activated users can see links. Click Here To Register...]

[Only registered and activated users can see links. Click Here To Register...]

any question ?? :)



if you use VMware just setup VMware briged and select your network cart thats all

sorry for DB post :/
mhm that debug is what shows up for me as well

(EDIT: im using the MU connection thing on the server and the IP thing in the beginning when it asks what ip to use i put the new one that i have for the server after switching it to bridged and on the session server start it shows up with my servers ip 65......, what IP should i put in the MU thinggy??)

the only thing is i have my vm set as a NAT and not bridged because im using a wireless internet connection piece instead of being wired into my router/modem/w.e

if i turn the vm network connection from NAT to bridged i wont be able to connect to the internet on the vm which i dont think is a good thing.....

Ill try switching how vm connects and see how that goes, hope it works >_>

EDIT: not working
[Only registered and activated users can see links. Click Here To Register...]

this is what i set the network connection as in the vm, i used ipconfig to find my servers new ip address and i put the IP in the correct spots, but still cant connect.

ALSO now that ive changed what IP i need to connect to and im not using NAT do i still need port forwarding or should i disable this in my router settings?.

EDIT2:
[Only registered and activated users can see links. Click Here To Register...]
switched from auto-bridging to my wireless network connection card.. (although i didnt remake a SS of my desktop to show you that i switched it, i did.)

this still didnt work

EDIT3:
[Only registered and activated users can see links. Click Here To Register...]

checked the checkbox while leaving the bridged connection in vm settings to my network card...

now the question is should i be using the cutom vmnet0 (bridged) or the bridged that i have selected atm or does it matter..

EDIT4:
[Only registered and activated users can see links. Click Here To Register...]

tried using the vmnet0 which is bridged, using the network card. still i cant connect nor can anyone else.


----------------------------------------------------------
im pretty sure using NAT with 192/127 IPs basically creates a private network in localhost that only i can connect to the server so your right i do need bridged...

but how do i use bridged
08/20/2011 09:59 =Warmonger=#13
Quote:
Originally Posted by ihatehacks View Post
mhm that debug is what shows up for me as well

(EDIT: im using the MU connection thing on the server and the IP thing in the beginning when it asks what ip to use i put the new one that i have for the server after switching it to bridged and on the session server start it shows up with my servers ip 65......, what IP should i put in the MU thinggy??)

the only thing is i have my vm set as a NAT and not bridged because im using a wireless internet connection piece instead of being wired into my router/modem/w.e

if i turn the vm network connection from NAT to bridged i wont be able to connect to the internet on the vm which i dont think is a good thing.....

Ill try switching how vm connects and see how that goes, hope it works >_>

EDIT: not working
[Only registered and activated users can see links. Click Here To Register...]

this is what i set the network connection as in the vm, i used ipconfig to find my servers new ip address and i put the IP in the correct spots, but still cant connect.

ALSO now that ive changed what IP i need to connect to and im not using NAT do i still need port forwarding or should i disable this in my router settings?.

EDIT2:
[Only registered and activated users can see links. Click Here To Register...]
switched from auto-bridging to my wireless network connection card.. (although i didnt remake a SS of my desktop to show you that i switched it, i did.)

this still didnt work

EDIT3:
[Only registered and activated users can see links. Click Here To Register...]

checked the checkbox while leaving the bridged connection in vm settings to my network card...

now the question is should i be using the cutom vmnet0 (bridged) or the bridged that i have selected atm or does it matter..

EDIT4:
[Only registered and activated users can see links. Click Here To Register...]

tried using the vmnet0 which is bridged, using the network card. still i cant connect nor can anyone else.


----------------------------------------------------------
im pretty sure using NAT with 192/127 IPs basically creates a private network in localhost that only i can connect to the server so your right i do need bridged...

but how do i use bridged
All you have to do is tick bridged. This allows the virtual machine to use your default network connection to communicate directly with your router. Also if your running wireless then forget about it. You cant run a server on a wireless connection as it drops too much data. Im sure it will work and be fine as long as your 2 feet from your access point lol... Also keep in mind that if your using wireless that means the virtual machine might need to be setup using the same WEP encryption key and such. Its really just a mind game, go to local pc shop buy $5-10 CAT5 ethernet cord and hook your machine directly into your router/switch/hub.
08/21/2011 18:50 ihatehacks#14
last question till i get up and hook the eth cord in...

what IP should i put in the MUserverstartup program on the server...
dun know if it makes a difference so im gonna ask o_o
08/22/2011 20:20 6shadow6#15
try put your internal IP or just leave 127.0.0.1