PDA

View Full Version : Connection problem


melkij
04.03.2005, 18:26
Hi, I need help, once more.RZ don't want to help, i thought maybe u can.
My server runs perfectly, everybody can connect to it, but I can't.What to do? THX
(I'm sitting on another computer on network)

Digital
05.03.2005, 02:40
probably a router/lan ip setting problem
try changing ur ip setting in l2.ini (client) to lan instead

melkij
05.03.2005, 10:45
If I set my .ini to WAN ip, i can't even connect.
If i set my .ini to lan ip, it is connecting till server status, then i'm pressing ok, nothing happens.
Maybe there is some proxy or smth....
yes, i have router.

nemeek
31.05.2005, 22:48
i too can, i heard some of "procs" for connection wan/lan in your own machine.

I need help too.

thx

BiGBoY
31.05.2005, 23:14
This should not be such hard nut to break.
First: U got router as hardware router or linux(unix) based router?
Second: U got any kind of firewall on ur local computers? If yes, which one?
Third: Did u already set the NAT part of settings?
Provide some more info and i might be able to help u.

nemeek
31.05.2005, 23:41
No firewalls, i have a router 3com 812 with 2.1.2 firmware. PAT (NAT) activated. All port open. Win xp sp1.

Thx

ThaDon
31.05.2005, 23:52
all ports open :S u should only open 7777/2106 and 80 ;)

nemeek
01.06.2005, 00:01
default workstation all open ports, is for start server without problems, all people connected minus I :S :'(

any solution? :S

ThaDon
01.06.2005, 00:04
hmm u have an second pc to test it from there?

nemeek
01.06.2005, 00:13
yes, in second pc i put in l2.ini the lan/wan ip of pc server. Not played with wan ip and not played lan ip form second pc lan.

:S

BiGBoY
01.06.2005, 00:30
Lets asume u got ur router set to LAN IP 1xx.xx8.2xx.xx4
and ur game server got LAN IP 1xx.xx8.200.1
and ur game computer got LAN IP 1xx.xx8.200.2
all in subnetmask 2xx.xx5.255.0
and ur WAN IP is xxx.xxx.xxx.xxx

Configure LAN for l2server:
IP:1xx.xx8.200.1
subnet:2xx.xx5.255.0
gateway:1xx.xx8.2xx.xx4
dns:1xx.xx8.2xx.xx4 or real IPS DNS

Configure LAN for game pc:
IP:1xx.xx8.200.2
subnet:2xx.xx5.255.0
gateway:1xx.xx8.2xx.xx4
dns:1xx.xx8.2xx.xx4 or real IPS DNS

L2 IP configuration:
in li2db/table server/id:1 name:Whatever ip:xxx.xxx.xxx.xxx inner_ip:127.0.0.1 or 1xx.xx8.200.1 (in ur case i prefer 127.0.0.1) agelimit:0 pkflag:1 kind:0 port:7777

So whichever inner_ip u have set here make sure u did the same to all ur ini files.

Set ur router NAT settings to enable. Set port FORWARD (ports 80, 2009 2106 and 7777) to 1xx.xx8.200.1
Restart router.

L2.ini:
u got two choices. Make one for public players from outside with wan ip:xxx.xxx.xxx.xxx and another one for LAN play with IP:1xx.xx8.200.1
U should be able to use public one but if it wont work try with local one.

Start CacheD, AuthD and start on game pc command prompt and type: telnet 1xx.xx8.200.1 2106
if u get the connection and u will get some junk text back u r on good way to succeed. Now start l2server and try to telnet to 1xx.xx8.200.1 7777
If u also connect to l2server u got ur router set well.
Now launch l2 client with one of both l2.ini u created and try to login (try with WAN first).

RmzVoid
01.06.2005, 00:37
melkij
Do you have L2SERVER in LAN and share it to WAN? If so i can help you.

nemeek
01.06.2005, 00:45
yes, i want play in lan and wan with other users. Other users enter in server without problems, but i cant enter from my lan.

With cached, auth and telnet 1xx.xx8.1.2 2106 (server l2) succes but with 7777 not can.

With lan address in l2.ini the lineage2 client give me ping 9 ms but not into the game. With wan ip in l2.ini the client not responds.


:S

RmzVoid
01.06.2005, 01:17
L2 IP configuration:
in li2db/table server/id:1 name:Whatever ip:xxx.xxx.xxx.xxx inner_ip:127.0.0.1 or 1xx.xx8.200.1 (in ur case i prefer 127.0.0.1) agelimit:0 pkflag:1 kind:0 port:7777


why prefer 127.0.0.1? Better perfomance?


Set ur router NAT settings to enable. Set port FORWARD (ports 80, 2009 2106 and 7777) to 1xx.xx8.200.1

for what port 2009????
Because I have often disconnections on my server only if client from WAN.
With local clients i have no this problem, i create topic but nobody halp me. May be problem in port2009?
Very interesting disconnections. Characters stuck no move, no action on client side, but on server all work also chat. So we can send packets from client and cant recieve server answer. This happens time to time.


L2.ini:
u got two choices. Make one for public players from outside with wan ip:xxx.xxx.xxx.xxx and another one for LAN play with IP:1xx.xx8.200.1
U should be able to use public one but if it wont work try with local one.
Start CacheD, AuthD and start on game pc command prompt and type: telnet 1xx.xx8.200.1 2106
if u get the connection and u will get some junk text back u r on good way to succeed. Now start l2server and try to telnet to 1xx.xx8.200.1 7777
If u also connect to l2server u got ur router set well.
Now launch l2 client with one of both l2.ini u created and try to login (try with WAN first).

Can happen problem with l2.ini and routing table if l2server not look directly in WAN. in l2.ini you can point any IP - LAN or WAN but l2authd redirect you to ip that point in l2db/server table. You can make second record with [ip] = LAN ip. and local users mast choose second server. If not, you mast make routing table to transfer packets in LAN through your internet gate:
route delete 1xx.xx8.200.0
route add 1xx.xx8.200.0 mask 2xx.xx5.255.0 1xx.xx8.20x.xx

nemeek
01.06.2005, 01:23
Rmzvoid

Can happen problem with l2.ini and routing table if l2server not look directly in WAN. in l2.ini you can point any IP - LAN or WAN but l2authd redirect you to ip that point in l2db/server table. You can make second record with [ip] = LAN ip. and local users mast choose second server. If not, you mast make routing table to transfer packets in LAN through your internet gate:
route delete 1xx.xx8.200.0
route add 1xx.xx8.200.0 mask 2xx.xx5.255.0 1xx.xx8.2xx.xx4

I this already tried it, (el second server gives ping me 9999), I do not know like doing it (if you help me brilliant), can that made it bad.


That 2 lines in database for this idea (i try last week with bad) are... ???

Thx :D

------------------------------

BigBoy and Rmzvoid

With lan address in l2.ini the lineage2 client give me ping 9 ms but not into the game. With wan ip in l2.ini the client not responds.


:S


Thx 4 all

RmzVoid
01.06.2005, 01:28
yes, i want play in lan and wan with other users. Other users enter in server without problems, but i cant enter from my lan.

With cached, auth and telnet 1xx.xx8.1.2 2106 (server l2) succes but with 7777 not can.

With lan address in l2.ini the lineage2 client give me ping 9 ms but not into the game. With wan ip in l2.ini the client not responds.


:S

telnet 1xx.xx8.1.2 7777 not works?
you have port 7777 opened? read my previous answer. may be help

nemeek
01.06.2005, 10:23
yes, 1xx.xx8.1.2 7777 enter the black screen, but in 10 seconds back to msdos.

In the game with l2.ini the client ping is good but not connect with screen of choose the pj.


thx

BiGBoY
01.06.2005, 11:23
RmzVoid
I prefer localhost (127.0.0.1) becouse u wont lost connection from LAN if the WAN is droped.

nemeek:
Ur problem lies in router settings under NAT configuration.

The point is that u r conencting either to LAN or WAN IP on port 2106 on the AuthD which redirect u to l2server and send to the client WAN IP on port 7777 no matter what ip u got in ur l2.ini. u always get the ip from server which is written in server table.

RmzVoid
01.06.2005, 12:58
yes, 1xx.xx8.1.2 7777 enter the black screen, but in 10 seconds back to msdos.

In the game with l2.ini the client ping is good but not connect with screen of choose the pj.


thx

That is normal - get black screen. That mean connection not refused

2BiGBoy
So why I need open and forward 2009 port?

BiGBoY
01.06.2005, 13:31
2BiGBoy
So why I need open and forward 2009 port?

So u can use php for control cached but its not must.

nemeek
01.06.2005, 14:05
Sure, can us put in this tread how i should put the 2 lines in lin2db for connecting with second server???


BigBoy, the router configuration is how you says in before post, and the server configuration too.

With wan ip in the l2.ini and the lin2db, the telnet "ipwan" 7777 not responds.

In the second server port 7777 too? or other port???

Second server ping 9999 :S


thx 4 all

RmzVoid
01.06.2005, 21:26
Sure, can us put in this tread how i should put the 2 lines in lin2db for connecting with second server???


See in Russian section about Bot protection

nemeek
01.06.2005, 23:56
Sure, can us put in this tread how i should put the 2 lines in lin2db for connecting with second server???


See in Russian section about Bot protection



Lol, i see but i dont understand russian, lol lol, you know russian?? you can translate pliz?


Thx

RmzVoid
02.06.2005, 04:39
of course, i am russian

to do:
1. go to lin2db, open table [server]
2. Copy whole record!
3. Edit existing record - field ip mast be 'xx.x.0.1' !!!
4. Paste new string from buffer

shortly ))

krapno
10.06.2005, 20:50
Well, i have same problem since i added modem/router on my little network, all players can connect and play from outside but i cannot join my own server :cry:

i have 1 computer and Router/Gateway/Modem/Ice Cream Machin

My network is set like that:

[INTERNET] <-WAN-> [ROUTER] <-WIFI-> [L2SERVER] <-LAN-> [HUBS] <-> [MOM]

ROUTER IP: 1xx.xx8.3.1
LAN WIFI IP: 1xx.xx8.3.10
LAN ETHERNET IP: 1xx.xx8.0.1
WAN IP: XXX.XXX.XXX.XXX

I added rows in lin2db table:
1 Biohazard XXX.XXX.XXX.XXX 127.0.0.1 0 1 1 7777
2 Biohazard 127.0.0.1 127.0.0.1 0 1 1 7777
3 Biohazard 1xx.xx8.0.1 127.0.0.1 0 1 1 7777
4 Biohazard 1xx.xx8.3.10 127.0.0.1 0 1 1 7777

And the only screen i have is that:
http://img91.echo.cx/img91/2248/shot000984oq.th.jpg (http://img91.echo.cx/my.php?image=shot000984oq.jpg)

I run server on the same computer i want to play... and ports 80,2009,2106,2009,7777 are open in TCP and UDP, all telnet [ip] 7777 results as no response :(

Tx for help

Livid
10.06.2005, 21:03
To the last post: seems like common multi-server issue. See "detail to run two servers" or something like that. It should be on top of page two in "mods only" section.

krapno
10.06.2005, 21:18
euh ... i run only 1 server on 1 computer, so i read post about multi-server but there is no answer to our actual problem, i am going to test some more routing settings... ty :?

krapno
11.06.2005, 14:11
Then, looking at any solution i tried to discover source of our connection problem, si made a localhost_ini and looked at ports requests, i had this:

l2.ini
...
Port=7777
Class=LineageWarrior.MFighter
ServerAddr=127.0.0.1
...

Screenshots from Active Ports 1.4
Login success
http://biohazardl2.xlteam.net/files/1_inilocal_login.jpg

Trying to join 1st server in list (wan ip in server table, lin2db)
http://biohazardl2.xlteam.net/files/2_inilocal_server_1.jpg

Trying to join 2nd server in list (127.0.0.1 ip in server table, lin2db)
http://biohazardl2.xlteam.net/files/3_inilocal_server_2.jpg

Any client in game from outside (wan ip in server table, lin2db)
http://biohazardl2.xlteam.net/files/4_iniwan_client_1.jpg

l2.ini
...
Port=7777
Class=LineageWarrior.MFighter
ServerAddr=1xx.xx8.3.10
...

Screenshots from Active Ports 1.4
Login success
http://biohazardl2.xlteam.net/files/5_iniwifi_login.jpg

Trying to join 1st server in list (wan ip in server table, lin2db)
http://biohazardl2.xlteam.net/files/5_iniwifi_server_1.jpg

We can see in the 1st case (using 127.0.0.1 in l2.ini), my remote ip is 127.0.0.1, and in the 2nd case (using 1xx.xx8.3.10 in l2.ini), my remote ip is my wan ip 217.XXX.XXX.XXX :idea:

Dunno if it can help anyone to find a solution... :roll: ... i wish...

nemeek
11.06.2005, 15:24
solution: (WoW)

Up the server with lan ip in the lin2db, enter the game.

Now, change the lan ip for wan ip in lin2db (with server on)

Unload C2auth and reload C2auth.

Remote players in game and you too


:)

krapno
11.06.2005, 18:10
Tx a lot, it works, its a nice solution:

1) Set LAN IP for Server in lin2db
2) Start Server
3) Enter the game

4) Set WAN IP for Server in lin2db (With Server ON)
5) Unload C2auth
6) Reload C2auth

I made some *.vbs scripts to update IP in lin2db table:

SET_LAN_IP.vbs
SERVERIP = "127.0.0.1"

ms_sql_server_host_addr = "127.0.0.1"
sql_server_username = "your_sql_login"
sql_server_password = "your_sql_password"
lin2db = "lin2db"

set lin2db_conn = CreateObject("ADODB.CONNECTION")
lin2db_conn.open "driver={SQL Server};server="&ms_sql_server_host_addr&"; uid="&sql_server_username&";pwd="&sql_server_password&";database="&lin2db

sql = "update [server] set [IP] = '" & SERVERIP & "' WHERE [id] = 1"
set rs = lin2db_conn.Execute(SQL)

msgbox("IP : " & SERVERIP)

krapno
11.06.2005, 21:02
tx for links Livid, very interessting topics :)