Post Pacific  

Go Back   Post Pacific > Восстановленный архив > Темы без сохранившегося раздела

Notices

 
 
Thread Tools Search this Thread Display Modes
Old 13.03.2006, 19:10   #1
Namenlos
Архивный участник
 
Join Date: Mar 2006
Posts: 160
Default Please, i realy need help...

Situation:
I have one Ethernet Adapter. Provider gives me LAN IP address and WAN ip address. Users of our network (LAN) can not view from browser, ping or ect. any WAN IP gived by provider.

Then, i have 2 IPs (LAN and WAN). LAN avalible for network only, WAN for internet players only.

Hyp of problems:
I can not make normal connection for LAN and internet players both.

In tests i found some interesting situations:

(1) id=1 ip=LAN_IP inner_ip=127.0.0.1 .....
OR
(2) id=1 ip=WAN_IP inner_ip=127.0.0.1 .....

First situation - game server avalible only from network
Second - only from internet (LAN users can't connect)


I have tryed to make this:
id=1 .... ip=LAN_IP inner_ip=127.0.0.1 .........
id=1 .... ip=WAN_IP inner_ip=127.0.0.1 .........
It make into window where we choose server 2 servers. For LAN 1st has ping 0-2 and avalible from LAN only. Second has ping 9999 and not allowed from LAN and Internet both.

I cant do this:
id=1 .... ip=LAN inner_ip=127.0.0.1 .........
id=2 .... ip=WAN inner_ip=127.0.0.1 .........
...because its 2 different L2Worlds.

__________________________________________________ _________
Also i am testing this:
id=1 name=l2world ip=WAN_IP inner_ip=LAN IP .....
Internet players are allowed, Network not allowed.
ALL this situations means ip collum into database is for GameServer connections, inner_ip for Login Server.

Please, tell me what to do? What's wrong?
Into SQL scripts IPs are LAN. Configs has LAN IP (NewAuth has 127.0.0.1 as LAN)

/// RUS RUS RUS RUS RUS RUS

У меня 1 сетевая карта. Провайдер выделяет мне сетевой IP, и статический (внешний). Внешний IP невозможно пропинговать, "посетить" через браузер, или вообще как-то использовать именно пользователям данной сети.

Получается, что сервер имеет 2 IP адреса, с одного IP могут играть только сетевики, с другого только инетчики.

Теперь туча вопросов.
Объединиить их никак не получается.

Протестировав немного эту ситуацию, понял, что нужно делать только так:
(1) ip=сетевой inner_ip=127.0.0.1(или какой в config NewAuth, через него идёт Login Server).....
ИЛИ
(2) ip=внешний inner_ip=127.0.0.1(или какой в config NewAuth, через него идёт Login Server).....

В данном случае будут коннектиться только сетевики(1) или только инетчики(2).

Попробовал сделать так:
id=1 .... ip=сетевой inner_ip=127.0.0.1 .........
id=1 .... ip=внешний inner_ip=127.0.0.1 .........

В этом случает на выбор сервера появляется 2 сервера. 1й для сетевиков, второй для инетчиков(для сетевиков его пинг 9999).
Оказалось, что инетчики зайти не могут на "свой" сервер. Ни на тот ни на тот.

Сделать следущим образом нельзя...
id=1 .... ip=сетевой inner_ip=127.0.0.1 .........
id=2 .... ip=внешний inner_ip=127.0.0.1 .........
...ибо получится 2 раздельных Мира.
__________________________________________________ ___________

При заполнении такого рода:
id=1 name=l2world ip=внешний inner_ip=сетевой .....
Получается всё так, что инетчики заходят, а сетевики не могут.
Выходит всегда так, что через ip идёт коннект к Миру, а через inner_ip к логин-серверу.

Когда ставил базу, в ней везде стояли сетевые IP. То есть именной в файлах SQL.

УБЕДИТЕЛЬНО ПРОШУ ОТКЛИКНУТЬСЯ И ПОМОЧЬ РАЗОБРАТЬСЯ! НЕ НАДО ФЛУДИТЬ ПРОСТО ТАК!

Прошу объяснить корректно, что делать... Мож не так настроил?
P.S. В конфигах стоит 127.0.0.1 (стояли и сетевые, но эффект тот же).

RUS ////
Namenlos is offline  
Old 13.03.2006, 20:37   #2
Shawnmb
Архивный участник
 
Join Date: Feb 2005
Posts: 307
Default

Are ports 2106 and 7777 open ?
Shawnmb is offline  
Old 13.03.2006, 20:54   #3
humordwarf
Архивный участник
 
Join Date: Feb 2006
Posts: 453
Default

he trying say... when he use WAN IP - external (internet) users may connect to server, but users from local network can't. local users do not see his WAN IP (ping timeout)
but when he use LAN IP - vice versa.. external users can not (LAN IP hidden for them), but with local users all ok.

he want setup server for both kind of users
humordwarf is offline  
Old 13.03.2006, 21:39   #4
Ugmak
Архивный участник
 
Join Date: Sep 2005
Posts: 72
Default

hmm i forget but they could use
/route add wanipofrouter lanipofgamecomputer on the computers trying to connect to the server

so sometrhing like /route add xx.xx.32.4 1xx.xx8.0.102 as an example. ive had to do that for some game sot play on local computer wiht a locacl server on the lan.
Ugmak is offline  
Old 13.03.2006, 23:45   #5
Namenlos
Архивный участник
 
Join Date: Mar 2006
Posts: 160
Default

Quote:
Originally Posted by Ugmak
hmm i forget but they could use
/route add wanipofrouter lanipofgamecomputer on the computers trying to connect to the server

so sometrhing like /route add xx.xx.32.4 1xx.xx8.0.102 as an example. ive had to do that for some game sot play on local computer wiht a locacl server on the lan.
I am too noobie. Please, tell me more about /route. What i have to do (download or buy)? What is it and how it will help me?
Namenlos is offline  
Old 13.03.2006, 23:49   #6
Namenlos
Архивный участник
 
Join Date: Mar 2006
Posts: 160
Default

I must tell you again what i wanna see on my server.
I have WAN IP (for local its ping timeout) and LAN IP.

I NEED to make both connections (external and local) to ONE server (one World). It will be nice if ONE gameserver will be into Choise-Server_window (window were user can check server for playing)
Namenlos is offline  
Old 14.03.2006, 00:10   #7
nucer
Архивный участник
 
Join Date: May 2005
Posts: 117
Default

lol change provider ))
nucer is offline  
Old 14.03.2006, 01:30   #8
Sire
Архивный участник
 
Join Date: Feb 2006
Posts: 87
Default

Hmm never tried this, but give it a shot.

Use the ip=wan ip in the configs. Then on the computer inside your network that you want to connect from, go to C:\WINDOWS\system32\drivers\etc. Open the hosts file, add a line to it. The line should look like this:

1xx.xx8.0.2 xx.xx0.2.1

The first IP is the LAN IP of the game server, second is the WAN IP of the game server. They are seperated by a space.

All this will do is redirect any traffic destined for the WAN IP, to the LAN IP instead.

Might not work for L2, never tried. But it's worth a shot if nothing else is working.
Sire is offline  
Old 14.03.2006, 01:49   #9
Namenlos
Архивный участник
 
Join Date: Mar 2006
Posts: 160
Default

I will try, thanks!
Any more offers?
Namenlos is offline  
Old 14.03.2006, 07:41   #10
GMan
Архивный участник
 
Join Date: Sep 2005
Posts: 198
Default

thats what i use and have not had any issues with that

https://postpacific.loc-online.com/f...651&highlight=
GMan is offline  
Old 14.03.2006, 10:41   #11
Kirikups
Архивный участник
 
Join Date: Oct 2005
Posts: 175
Default

hi, NAT problems can depend of your "gateway/Ethernet Adapter" and how it resolve routes. i got same problem using a "LiveBox" (provided by Wanadoo in France), i wasnt able to join server from LAN if server wasnt in the case: ip=LAN_IP inner_ip=LAN_IP

now i left Wanadoo and i got another "gateway/Ethernet Adapter" called "Freebox" (provided by Free in France), and the problem is gone, i use that gateway exactly like i used the Wanadoo Livebox but now i can connect the server in any case using WAN_IP in l2.ini

i mean with WAN_IP in l2.ini i have:

case 1: ip=LAN_IP inner_ip=LAN_IP
internet players : [s:825031c939]cannot login[/s:825031c939]
lan players : can login

case 2: ip=WAN_IP inner_ip=LAN_IP
internet players : can login
lan players : can login

ports 2106 and 777 are redirected to LAN_IP

Regards
Kirikups is offline  
Old 14.03.2006, 15:25   #12
Namenlos
Архивный участник
 
Join Date: Mar 2006
Posts: 160
Default

Quote:
Originally Posted by Kirikups
case 2: ip=WAN_IP inner_ip=LAN_IP
internet players : can login
lan players : can login

ports 2106 and 7777 are redirected to LAN_IP

Regards
In this case external and local players CAN NOT connect. I even can't launch my server. May be bug into the SQL scripts? Which IP i must insert here (127.0.0.1, WAN or LAN) ?
Which IPs in configs? Everywere i have
;Your LAN IP here
address=LAN_IP

i insert my LAN IP.

So, when i use your 2nd case, i even can not start my server.

How can i redirect ports to LAN?
Namenlos is offline  
Old 14.03.2006, 17:00   #13
nucer
Архивный участник
 
Join Date: May 2005
Posts: 117
Default

Реально тебе говорю меняй провайдера, нихера у тебя не получится. Не может логин сервер передавать одним юзерам один айпи, а другим другой. Или скажи им чтоб настроили нормально )
nucer is offline  
Old 14.03.2006, 17:20   #14
Namenlos
Архивный участник
 
Join Date: Mar 2006
Posts: 160
Default

Now i am doing it:
id=1 ip=WAN_IP inner_ip=LAN_IP

All IPs in my configs are LAN where i have to write LAN IP and WAN, where i have to write WAN (LAN everywere adn one WAN in NewAuth config)

Now local and internet players can connect to Login Server, when they choose server it's able for external and NOT able for local.

I dont know why it work so, but i understand one thing in Lin2db, server table (i will tell you AGAIN):
ip collum contains IP address for connecting to GameServer. Inner_ip collum contains IP for internal server connections only (inside server machine via localhost or LAN). IS IT right?
Namenlos is offline  
Old 14.03.2006, 19:10   #15
nucer
Архивный участник
 
Join Date: May 2005
Posts: 117
Default

Lol... ip - ip of your server, inner_ip - ip that login server uses for internal communication.
nucer is offline  
Old 14.03.2006, 22:19   #16
Namenlos
Архивный участник
 
Join Date: Mar 2006
Posts: 160
Default

Quote:
Originally Posted by nucer
Lol... ip - ip of your server, inner_ip - ip that login server uses for internal communication.
So Home Net Telecom (HNT Moscow) IS BULL***T!
Namenlos is offline  
Old 15.03.2006, 02:24   #17
Sire
Архивный участник
 
Join Date: Feb 2006
Posts: 87
Default

Did you try using hosts file?
Sire is offline  
Old 15.03.2006, 21:47   #18
Namenlos
Архивный участник
 
Join Date: Mar 2006
Posts: 160
Default

Quote:
Originally Posted by Sire
Did you try using hosts file?
Yes, i did.
external_ip [tab] internal_ip

There are no results.
I think its realy provider's problems. Inner_ip collum is using for internal server connections only + users to login server. IP collum is for gameserver connections. LAN user can not connect when i write in collum my external IP, because it is not able for LAN, tnx for provider. So my server with it for LAN or WAN only. I will try to use another provider.

Question:
Soon i will use 2 Ethernet Adapters and 2 LANs. How i can make ONE server for TWO LAN and ONE WAN IPs?
Let LANIP_1 is my first LAN IP. Server will be avalible for this net by internet and 1st adapter (via LAN). LANIP_2 my future LAN IP in Network where people can join via LAN and WAN both. WAN IP will be from 2nd network (WANIP).

How can i make for 3 IPs ONE server? File hosts? Plz tell me
Namenlos is offline  
Old 16.03.2006, 00:39   #19
Sire
Архивный участник
 
Join Date: Feb 2006
Posts: 87
Default

No, is external_ip<space>internal_ip

No tabs.
Sire is offline  
Old 16.03.2006, 06:34   #20
napaHouK
Архивный участник
 
Join Date: Mar 2005
Posts: 49
Default

Quote:
Originally Posted by Namenlos
Quote:
Originally Posted by nucer
Lol... ip - ip of your server, inner_ip - ip that login server uses for internal communication.
So Home Net Telecom (HNT Moscow) IS BULL***T!
So, maybe, maybe
But i have all working perfectly. Try to use routing like Ugmak adviced or create a portmapping on your PC from local address to your WanIP.
napaHouK is offline  
Old 16.03.2006, 20:26   #21
Namenlos
Архивный участник
 
Join Date: Mar 2006
Posts: 160
Default

Quote:
Originally Posted by napaHouK
So, maybe, maybe
But i have all working perfectly. Try to use routing like Ugmak adviced or create a portmapping on your PC from local address to your WanIP.
Maksim, the main problem now not in HNT, just stupid AuthD server from PostPacific release 1.0 =)
It can not display normaly more than 1 server. Only 1st server is avalible for playing. Bug fixed
Namenlos is offline  
 

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT. The time now is 18:09.