Skip to content
La2Base
Home
DownloadsWikiForumFAQ
Search
ruen
Sign up Login
HomeFilesWikiLogin
  • Home
  • Downloads
  • Wiki
  • FAQ
  • Contact Us
  • About
  • Rules
  • Privacy
  • Terms of Service

© 2026 la2base.com · All rights reserved

ruen
Forum/Форум для новичков[JAVA]/[help]Незаходят с локалки
Search

[help]Незаходят с локалки

14 replies206 viewsCurrently viewing: 1
D
DeaDAnge1

User

Участник

Posts: 34

На форуме с: 02/21/2009

Рейтинг: 0

· 03/01/2009, 03:49 PM

Железо:AMD Athlon 64x x2 Dual ОЗУ 4 гб
ОС: Винда хр х32 sp 3
Программы: мускул 5.2. х32, ява х32
Сборка:Gracia, L2Emu

Краткое изложение СУТИ проблемы:Прблема в том что Люди из инета могут заходить а с Локалки нет..
Вопрос: Как это исправить
Мои соображения по этому поводу:Возможно то что у мну Java (Хотя безпонятия)
ЗЫ..Спасибка с меня обеспечена!!!И буду век блогадарен

0
MAx
MAx

User

Участник

Posts: 99

На форуме с: 06/12/2007

Репутация: +26

Рейтинг: 0

· 03/01/2009, 03:56 PM

Для людей из локальной сети нужен отдельный файл l2.ini отличный от того который предназначен для пользователей интернета.

0
D
DeaDAnge1

User

Участник

Posts: 34

На форуме с: 02/21/2009

Рейтинг: 0

· 03/01/2009, 03:57 PM

Т.е мне для него делать новый Ини файл?

0
Vasya
Vasya

User

Бывалый

Posts: 147

На форуме с: 03/09/2008

Репутация: +54

Рейтинг: 0

· 03/01/2009, 04:01 PM

делать 2 файла l2.ini в одном твой инет адрес, в другом твой локальный адрес

ну и настройки сервера должны быть на 2 сети, на интернет адрес и на локалку :)

0
D
DeaDAnge1

User

Участник

Posts: 34

На форуме с: 02/21/2009

Рейтинг: 0

· 03/01/2009, 04:08 PM

Т.е тут надо вписать?
# This is transmitted to the clients connecting from an external network,
# so it has to be a public IP or resolvable hostname.
ExternalHostname =195.239.133.193 тут мой VPN IP

# This is transmitted to the client from the same network,
# so it has to be a local IP or resolvable hostname
InternalHostname =10.221.1.28 а тут локальный?


Или на оборот?

0
Vasya
Vasya

User

Бывалый

Posts: 147

На форуме с: 03/09/2008

Репутация: +54

Рейтинг: 0

· 03/01/2009, 04:18 PM

так=)

0
D
DeaDAnge1

User

Участник

Posts: 34

На форуме с: 02/21/2009

Рейтинг: 0

· 03/01/2009, 04:23 PM

Эм...Так он вообще терь некого не пускает((

Эм...Вы эт лучше можите показать где надо написать???)Вот мой ГС

# Bind ip of the gameserver, use 0.0.0.0 to bind on all available IPs
# This is The IP/Port Gameserver will Assume and Use.
GameServerHostName =195.239.133.193
GameServerPort = 7777

# this is the Loginserver host and port that this gameserver will try to connect to.
LoginPort = 9014
LoginHost = 195.239.133.193

# This is transmitted to the clients connecting from an external network,
# so it has to be a public IP or resolvable hostname.
ExternalHostname =195.239.133.193

# This is transmitted to the client from the same network,
# so it has to be a local IP or resolvable hostname
InternalHostname =10.221.1.28

# ------------------------------------
# Section: Subnets & Advanced Routing
# ------------------------------------
# Define optional networks and router IPs
#
# Format:
#
# Subnet = host, net/mask; host, net/mask, net/mask
#
# host - IP address (200.100.200.100) or
# fully qualified domain name (example.org)
#
# net/mask - mask 192.168.0.0/16 or 192.168.0.0/255.255.0.0
# would be 192.168.*.*
#
# External - external hostname, you defined in server.properties
# Internal - internal hostname, you defined in server.properties
#
# Example:
# Subnet = 169.254.1.100, 169.254.0.0/16, 111.222.333.0/255.255.255.0
InternalNetworks =195.239.133.193
OptionalNetworks =195.239.133.193

Subnet = Internal, 127.0.0.1/32, 192.168.0.0/16, 10.0.0.0/8, 172.16.0.0/12
Subnet = External, 0.0.0.0/0

А вот ЛС

# Bind ip of the loginserver, use 0.0.0.0 to bind on all available IPs
LoginServerHostName = 195.239.133.193
LoginServerPort = 2106
# The port, ip on which login will listen for GameServers
LoginPort = 9014
LoginHostName = 195.239.133.193
# The delay between IP Update Time.
# set this delay in minutes after which the login updates the gameservers IP's
# (usefull when ip is dynamic)
# (0 = disabled) in Minutes
IpUpdateTime = 10
Всели правельно стоит для того что б друг с локалки смог зайти??

0
Vasya
Vasya

User

Бывалый

Posts: 147

На форуме с: 03/09/2008

Репутация: +54

Рейтинг: 0

· 03/01/2009, 04:25 PM

LoginServerHostName = 195.239.133.193
у тебя коннект к логин сервер (авторизация) стоит на интернет, а значит с локалки не зайти

0
D
DeaDAnge1

User

Участник

Posts: 34

На форуме с: 02/21/2009

Рейтинг: 0

· 03/01/2009, 04:36 PM

не помогло

0
Vasya
Vasya

User

Бывалый

Posts: 147

На форуме с: 03/09/2008

Репутация: +54

Рейтинг: 0

· 03/01/2009, 04:37 PM

я бы так попробовал сделать

CODE

# Bind ip of the gameserver, use 0.0.0.0 to bind on all available IPs
# This is The IP/Port Gameserver will Assume and Use.
GameServerHostName = 0.0.0.0 //гс будет доступен на всех видимых ip
GameServerPort = 7777

# this is the Loginserver host and port that this gameserver will try to connect to.
LoginPort = 9014
LoginHost = 195.239.133.193 //я обычно всегда лс и гс связываю через 127.0.0.1

# This is transmitted to the clients connecting from an external network,
# so it has to be a public IP or resolvable hostname.
ExternalHostname =195.239.133.193

# This is transmitted to the client from the same network,
# so it has to be a local IP or resolvable hostname
InternalHostname =10.221.1.28

# ------------------------------------
# Section: Subnets & Advanced Routing
# ------------------------------------
# Define optional networks and router IPs
#
# Format:
#
# Subnet = host, net/mask; host, net/mask, net/mask
#
# host - IP address (200.100.200.100) or
# fully qualified domain name (example.org)
#
# net/mask - mask 192.168.0.0/16 or 192.168.0.0/255.255.0.0
# would be 192.168.*.*
#
# External - external hostname, you defined in server.properties
# Internal - internal hostname, you defined in server.properties
#
# Example:
# Subnet = 169.254.1.100, 169.254.0.0/16, 111.222.333.0/255.255.255.0
InternalNetworks =195.239.133.193, 10.221.1.28 //так
OptionalNetworks =195.239.133.193, 10.221.1.28 //и так

Subnet = Internal, 127.0.0.1/32, 192.168.0.0/16, 10.0.0.0/8, 172.16.0.0/12
Subnet = External, 0.0.0.0/0

А вот ЛС

# Bind ip of the loginserver, use 0.0.0.0 to bind on all available IPs
LoginServerHostName = 0.0.0.0
LoginServerPort = 2106
# The port, ip on which login will listen for GameServers
LoginPort = 9014
LoginHostName = 195.239.133.193 //делаю по 127.0.0.1, только если лс и гс на одной машине
# The delay between IP Update Time.
# set this delay in minutes after which the login updates the gameservers IP's
# (usefull when ip is dynamic)
# (0 = disabled) in Minutes
IpUpdateTime = 10

не на 100% уверен, но как то так можно попробовать, мои комментарии если что сотри=)

0
D
DeaDAnge1

User

Участник

Posts: 34

На форуме с: 02/21/2009

Рейтинг: 0

· 03/01/2009, 04:38 PM

Ладно щас попробую)

0
D
DeaDAnge1

User

Участник

Posts: 34

На форуме с: 02/21/2009

Рейтинг: 0

· 03/01/2009, 04:55 PM

Фух...Спасибо тебе огромное лови спасибки))Все работает теперь ))) to_become_senile.gif 3c2f1c34aa11.gif 30247d5321bc.gif 05e811906ebf.gif

0
Vasya
Vasya

User

Бывалый

Posts: 147

На форуме с: 03/09/2008

Репутация: +54

Рейтинг: 0

· 03/01/2009, 05:04 PM

нз=) рад что помог=)

0
Украина
Украина

User

Бывалый

Posts: 234

На форуме с: 06/16/2008

Репутация: +172

Рейтинг: 0

· 03/01/2009, 05:25 PM

DeaDAnge1: Эм...Так он вообще терь некого не пускает((

Эм...Вы эт лучше можите показать где надо написать???)Вот мой ГС

# Bind ip of the gameserver, use 0.0.0.0 to bind on all available IPs
# This is The IP/Port Gameserver will Assume and Use.
GameServerHostName =0.0.0.0
GameServerPort = 7777

# this is the Loginserver host and port that this gameserver will try to connect to.
LoginPort = 9014
LoginHost = 0.0.0.0

# This is transmitted to the clients connecting from an external network,
# so it has to be a public IP or resolvable hostname.
ExternalHostname =195.239.133.193

# This is transmitted to the client from the same network,
# so it has to be a local IP or resolvable hostname
InternalHostname =10.221.1.28

# ------------------------------------
# Section: Subnets & Advanced Routing
# ------------------------------------
# Define optional networks and router IPs
#
# Format:
#
# Subnet = host, net/mask; host, net/mask, net/mask
#
# host - IP address (200.100.200.100) or
# fully qualified domain name (example.org)
#
# net/mask - mask 192.168.0.0/16 or 192.168.0.0/255.255.0.0
# would be 192.168.*.*
#
# External - external hostname, you defined in server.properties
# Internal - internal hostname, you defined in server.properties
#
# Example:
# Subnet = 169.254.1.100, 169.254.0.0/16, 111.222.333.0/255.255.255.0
InternalNetworks =195.239.133.193
OptionalNetworks =195.239.133.193

Subnet = Internal, 127.0.0.1/32, 192.168.0.0/16, 10.0.0.0/8, 172.16.0.0/12
Subnet = External, 0.0.0.0/0

А вот ЛС

# Bind ip of the loginserver, use 0.0.0.0 to bind on all available IPs
LoginServerHostName = 0.0.0.0
LoginServerPort = 2106
# The port, ip on which login will listen for GameServers
LoginPort = 9014
LoginHostName = 0.0.0.0
# The delay between IP Update Time.
# set this delay in minutes after which the login updates the gameservers IP's
# (usefull when ip is dynamic)
# (0 = disabled) in Minutes
IpUpdateTime = 10
Всели правельно стоит для того что б друг с локалки смог зайти??


Вот так настроиш и к тебе можна будет зайти как с локалки так и с нета только прийдётся зделать 2 файлика l2.ini 1 с внешним ипом, 2 с локальным ! удачи :)

0
Войдите или зарегистрируйтесь чтобы ответить