Post Pacific

Post Pacific (https://postpacific.loc-online.com/index.php)
-   Темы без сохранившегося раздела (https://postpacific.loc-online.com/forumdisplay.php?f=10001)
-   -   Please, i realy need help... (https://postpacific.loc-online.com/showthread.php?t=3641)

Namenlos 13.03.2006 19:10

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 ////

Shawnmb 13.03.2006 20:37

Are ports 2106 and 7777 open ?

humordwarf 13.03.2006 20:54

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

Ugmak 13.03.2006 21:39

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.

Namenlos 13.03.2006 23:45

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 13.03.2006 23:49

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)

nucer 14.03.2006 00:10

lol change provider ))

Sire 14.03.2006 01:30

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.

Namenlos 14.03.2006 01:49

I will try, thanks!
Any more offers?

GMan 14.03.2006 07:41

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

https://postpacific.loc-online.com/f...651&highlight=

Kirikups 14.03.2006 10:41

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

Namenlos 14.03.2006 15:25

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?

nucer 14.03.2006 17:00

Реально тебе говорю меняй провайдера, нихера у тебя не получится. Не может логин сервер передавать одним юзерам один айпи, а другим другой. Или скажи им чтоб настроили нормально )

Namenlos 14.03.2006 17:20

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?

nucer 14.03.2006 19:10

Lol... ip - ip of your server, inner_ip - ip that login server uses for internal communication.

Namenlos 14.03.2006 22:19

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!

Sire 15.03.2006 02:24

Did you try using hosts file?

Namenlos 15.03.2006 21:47

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

Sire 16.03.2006 00:39

No, is external_ip<space>internal_ip

No tabs.

napaHouK 16.03.2006 06:34

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.

Namenlos 16.03.2006 20:26

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


All times are GMT. The time now is 15:56.