Router Setup

IceMan

Hero's Act Mir 2
Legendary
Apr 17, 2003
8,544
2
370
350
For a router you need to forward ports 7000,7100,7200, and 3000 if you wanna use a server siggy with usercount or something similar.
Once you know your global IP(goto whatismyip.com) and internal IP (usually 192.168.*.***) it's easy to set up server.

NOTE leave all IP's at 0.0.0.0 alone

1. DBServer/!Addrtable.txt = Internal IP
DBServer/!Severinfo.txt = Internal IP / Global IP
DBServer/Dbsrc.txt = All internal IP

2. LoginGate/config.txt = Internal IP

3. LoginSrv/!Addrtable.txt = server name, server name, Internal IP, Global IP, Global IP
!Serveraddr.txt = Internal IP
Logsrv.txt = All Internal IP

4. M2Server/!runaddr = Global IP
!servertable.txt = Global IP
!Setup.txt = Internal IP

5. RunGate/Config.txt = Internal IP

6. SelGate/Config.txt = Internal IP

Thanks Weikster
 
Last edited by a moderator:
  • Like
Reactions: Blaine

Dazz

LOMCN Veteran
Veteran
Apr 12, 2008
296
0
63
Lif, only reason I said that because I've never tried or read into getting a 2.6 online i've never even messed around with some server files aint had the chance yet, which is why I said not sure if its any different..

/Daz
 
Upvote 0

Flame

Terminus
Veteran
Loyal Member
Oct 17, 2003
412
1
115
Sorry to Bump the thread, but is my internal IP address my default Gateway? because its not 192.168.*.*** lol

I keep getting an error when i try to use the address i think is my internal IP but i cant be its 10.10.10.*** WTF lol

346tana.jpg


Could someone help me out? my routers an Addon 802.11n/b/g and i can only see two ips and they begin with 194.168 in them jesus i hate my router (theyre under domain name server)
 
Last edited:
Upvote 0

Evilkinevil

Dedicated Member
Dedicated Member
Sep 20, 2003
15
0
48
Everywhere
tried setting up a server. 2.3 files from TD and everything seems to work fine but myself and my friends cannot login, it skips straight to server select and then says connection failed when u click it. wonder what i did wrong? any help plz. am using vista too.
 
Upvote 0

Chris22

LOMCN Veteran
Veteran
Jun 10, 2009
372
1
45
tried setting up a server. 2.3 files from TD and everything seems to work fine but myself and my friends cannot login, it skips straight to server select and then says connection failed when u click it. wonder what i did wrong? any help plz. am using vista too.

Select server should come up first anyway then the login screen, copy a pic of your applications open or post what your m2server application and dbserver applications say after you run them....

It could be a number of things but its most likely (error keeping command query alive....)?
 
Upvote 0

Evilkinevil

Dedicated Member
Dedicated Member
Sep 20, 2003
15
0
48
Everywhere
dbserver says Server Started...
Gate connected
-- SQL KeepAlive

m2server ends with everything opened and loading 230/230 something and this at the end
U-Engine initialized..
[4/15/2010 9:38:03 AM] Guilds: 0
[4/15/2010 9:38:04 AM] Total Castles: 1
[4/15/2010 9:38:16 AM] LoginServer Connected(192.168.1.64:5600)
[4/15/2010 9:38:16 AM] Gate[0](192.168.1.64:50755) Opened...
[4/15/2010 9:38:19 AM] DBServer Connected(192.168.1.64:6000)

then down below it has an address listed i guess to connect to my server and server idx 0 so i assume it was setup right.
 
Upvote 0

Chris22

LOMCN Veteran
Veteran
Jun 10, 2009
372
1
45
dbserver says Server Started...
Gate connected
-- SQL KeepAlive

m2server ends with everything opened and loading 230/230 something and this at the end
U-Engine initialized..
[4/15/2010 9:38:03 AM] Guilds: 0
[4/15/2010 9:38:04 AM] Total Castles: 1
[4/15/2010 9:38:16 AM] LoginServer Connected(192.168.1.64:5600)
[4/15/2010 9:38:16 AM] Gate[0](192.168.1.64:50755) Opened...
[4/15/2010 9:38:19 AM] DBServer Connected(192.168.1.64:6000)

then down below it has an address listed i guess to connect to my server and server idx 0 so i assume it was setup right.

Your setup is just fine, it must be an ip problem you are having, check that all your ips for using your server online are correct, and make sure ports 7000, 7100, 7200 are all forwarded on your router if u have one.
 
Upvote 0

akacary2

LOMCN Veteran
Veteran
Loyal Member
Dec 11, 2008
274
1
44
Hartlepool
Just incase anyone is having the same trouble I had...
Which was everything was correct, ip's and ports forwarded etc but I was still getting connection closed. :blink:
I later realised that it was my damn router assigning me a different local ip everytime I started PC up lol. If you are having this prob then just try ipconfig on command prompt, take a note of local ip, restart PC and try it again, c if it changes.
Solution is to either forward ports for a number of local ip's. E.g 192.168.2.10 through to 192.168.2.15 whatever yours gets changed between or assign a static ip outside of the allocated addresses and it should work everytime.
If not then the problem may lie elsewhere sry lol
Hope this helps someone :)
 
Upvote 0

Shank

The_Mafia
VIP
Dec 4, 2008
2,082
17
165
i get socket error, annoying , copied everything off the guide, its fine til i copy this stupid guide then i get socket errors :@
 
Upvote 0

akacary2

LOMCN Veteran
Veteran
Loyal Member
Dec 11, 2008
274
1
44
Hartlepool
i get socket error, annoying , copied everything off the guide, its fine til i copy this stupid guide then i get socket errors :@

I may have misunderstood here but If its fine why mess with it?

Edit: Are you saying you go from 1 socket error to multiple socket errors?
Edit2: Go into command prompt, type netstat -a (i think its this 1) and look to see if any other process is using any of the ports needed to run server.
E.g 5000, 5500 6000 etc.
Once you find it identify which process or application is using the port by matching the PID against PID number in Task Manager. If PID isnt on Task Manager, go view, select column, then check box for PID. Check on google what the process is and see if ya can end process or not (I learnt hard way and got blue screened lol)
Im on vista and had the problem of a windows app using port 5000 and had locked it, so I went into all server files and the 1's that said port 5000 I changed to 5200 cos nowt was using tht 1 and all was ok.
 
Last edited:
Upvote 0

Anonlol

LOMCN Veteran
Veteran
Feb 25, 2010
574
14
104
For a router you need to forward ports 7000,7100,7200, and 3000 if you wanna use a server siggy with usercount or something similar.
Once you know your global IP(goto whatismyip.com) and internal IP (usually 192.168.*.***) it's easy to set up server.

NOTE leave all IP's at 0.0.0.0 alone

1. DBServer/!Addrtable.txt = Internal IP
DBServer/!Severinfo.txt = Internal IP / Global IP
DBServer/Dbsrc.txt = All internal IP

2. LoginGate/config.txt = Internal IP

3. LoginSrv/!Addrtable.txt = server name, server name, Internal IP, Global IP, Global IP
!Serveraddr.txt = Internal IP
Logsrv.txt = All Internal IP

4. M2Server/!runaddr = Global IP
!servertable.txt = Global IP
!Setup.txt = Internal IP

5. RunGate/Config.txt = Internal IP

6. SelGate/Config.txt = Internal IP

Thanks Weikster

I've done all this and triple checked. However external people cant connect. I can connect though and m2server is showing no errors. Ports are forwarded, windows firewall is allowed, not sure what the problem is (2.3)
 
Upvote 0

Anonlol

LOMCN Veteran
Veteran
Feb 25, 2010
574
14
104
Doesnt appear to have worked

I have edited all the IPs in the first post plus some others that weren't in there.

EG GameGate/config and Gamegate/configonline/config

Its the external IP people need to connect yeah?

I have a couple files like 192.168.1.70 86.173.25.179 7200

should it be 192.168.1.70 86.173.25.179:7200 ?
 
Last edited:
Upvote 0

Anonlol

LOMCN Veteran
Veteran
Feb 25, 2010
574
14
104
Well we just tried getting this online with no luck, 2 of us couldnt work it out, checked IPs like 6 times, I can log on but no-one else can. I've tried turning off fw, ports are forwarded, no AV running, at a loss on what to do now, lol.
 
Upvote 0

Madman

LOMCN Veteran
Veteran
Jan 16, 2010
490
17
44
Well we just tried getting this online with no luck, 2 of us couldnt work it out, checked IPs like 6 times, I can log on but no-one else can. I've tried turning off fw, ports are forwarded, no AV running, at a loss on what to do now, lol.

Cant remem the exact name of it, but on ur router page, look for DMZ i think, and allow it.
 
Upvote 0

Blaine

Dedicated Member
Dedicated Member
Mar 1, 2010
21
0
27
"Illegal ip: ***.***.*.*
Gate Connected
Wrong Ip ***.***.*.*
Gate Disconnected"

any idea whats happen?
 
Last edited:
Upvote 0

Skyline

LOMCN Admin
Staff member
Administrator
Mar 26, 2003
7,150
564
380
Sheffield
To get internal ip

Start > Rum > Type CMD and hit enter
In the black box type ipconfig and hit enter

You will see "IP Address" - this is your Internal IP

To get the external IP go to www.whatismyip.com - This is your External IP.
 
Upvote 0