Secret Experience

Secret Experience (https://secretexperience.net/)
-   [L2J] Dúvidas (https://secretexperience.net/l2j-duvidas/)
-   -   [Interlude] Login e Gameserver (https://secretexperience.net/l2j-duvidas/11004-login-e-gameserver.html)

valmirjt 28-07-2009 07:48 PM

Login e Gameserver
 
Bom sei que ja foi bastante discutido sobre isso mais aqui eu to com um problema.
No pc que esta o servidor consigo logar e quem ta de fora tbm , agora quem ta nos outros pc da lan house não passa da tela do logim onde escolhe o server . Eu uso um d link com um switch , uso L2JDOT.

Minha configuração está assim:

Loginserver
Código:

# This is the server configuration file. Here you can set up the connection for your server.
# Usually you have to change the ExternalHostname option to
# - 127.0.0.1 (if you want to play alone / testing purpose)
# - LAN IP* (if you want to play from another computer in the network)
# - WAN IP** (if you want to play with friends over internet)
# - Questions? => [Somente Usuários Registrados Podem Visualizar os Links Desta PáginaClique aqui para se Registrar]
#
# * = If you want to get your LAN IP, simply choose "Start" => "Run..." then type "cmd" => "ipconfig"
# **= If you want to get you WAN IP, visit [Somente Usuários Registrados Podem Visualizar os Links Desta PáginaClique aqui para se Registrar]
# ===================================================================================================

# ================================================================
# General server setting !!! REQUIRED to configure to everyone !!!
# ================================================================

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

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

# Bind ip of the LoginServer, use * to bind on all available IPs
LoginserverHostname = *
LoginserverPort = 2106

# How many times you can provide an invalid account/pass before the IP gets banned
LoginTryBeforeBan = 10

# Time you won't be able to login back again after LoginTryBeforeBan tries to login. Provide a value in seconds. Default 10min. (600)
LoginBlockAfterBan = 600
GMMinLevel = 100

# The address on which login will listen for GameServers, use * to bind on all available IPs
LoginHostname = *
# The port on which login will listen for GameServers
LoginPort = 9014

# If set to true any GameServer can register on your login's free slots
AcceptNewGameServer = True

# If false, the licence (after the login) will not be shown
# It is highly recomended for Account Seciurity to leave this option as defalut (True)
ShowLicence = True

# Database info
Driver=com.mysql.jdbc.Driver
#Driver=org.hsqldb.jdbcDriver
#Driver=com.microsoft.sqlserver.jdbc.SQLServerDriver
URL=jdbc:mysql://localhost/l2jdb
#URL=jdbc:hsqldb:hsql://localhost/l2jdb
#URL=jdbc:sqlserver://localhost/database=l2jdb/user=sa/password=
Login = root
Password =
MaximumDbConnections = 10

# Useable values: "true" - "false", use this option to choose whether accounts will be created
# automatically or not.
AutoCreateAccounts = False

# The delay in minutes after which the login updates the gameservers IP's (usefull when their ip is dynamic)
IpUpdateTime = 15


# ==============================================================
# Test server setting, shoudnt be touched in online game server
# ==============================================================

Debug = False
Assert = False
Developer = False

# Enforce GG Authorization from client
# Login server will kick client if client bypassed GameGuard authentication
ForceGGAuth = False

#FloodProtection. time in ms
EnableFloodProtection = True
FastConnectionLimit = 15
NormalConnectionTime = 700
FastConnectionTime = 350
MaxConnectionPerIP = 50

Gameserver
Código:

# This is the server configuration file. Here you can set up the connection for your server.
# Usually you have to change the ExternalHostname option to
# - 127.0.0.1 (if you want to play alone / testing purpose)
# - LAN IP* (if you want to play from another computer in the network)
# - WAN IP** (if you want to play with friends over internet)
# - Questions? => http:\\l2dot.info\forum\
#
# * = If you want to get your LAN IP, simply choose "Start" => "Run..." then type "cmd" => "ipconfig"
# **= If you want to get you WAN IP, visit [Somente Usuários Registrados Podem Visualizar os Links Desta PáginaClique aqui para se Registrar]
# ===================================================================================================
 
# ================================================================
# General server setting !!! REQUIRED to configure to everyone !!!
# ================================================================

# Bind ip of the gameserver, use * to bind on all available IPs
GameserverHostname = *
GameserverPort = 7777

# This is transmitted to the clients connecting from an external network, so it has to be a public IP or resolvable hostname
# If this ip is resolvable by Login just leave *
ExternalHostname =no-ip.servegame.com

# This is transmitted to the client from the same network, so it has to be a local IP or resolvable hostname
# If this ip is resolvable by Login just leave *
InternalHostname = 10.1.1.20

# The Loginserver host and port
LoginPort = 9014
LoginHost = 127.0.0.1

# This is the server id that the gameserver will request (i.e. 1 is Bartz)
RequestServerID = 1
# If set to true, the login will give an other id to the server  if the requested id is allready reserved
AcceptAlternateID = True

# Database info
Driver=com.mysql.jdbc.Driver
#Driver=org.hsqldb.jdbcDriver
#Driver=com.microsoft.sqlserver.jdbc.SQLServerDriver
URL=jdbc:mysql://localhost/l2jdb
#URL=jdbc:hsqldb:hsql://localhost/l2jdb
#URL=jdbc:sqlserver://localhost/database=l2jdb/user=sa/password=
Login = root
Password =
MaximumDbConnections = 100

# Datapack root directory, defaults to current directory from which the server is started
# DatapackRoot = C:/Work/tmp/DataPack

# Define character name template
# Example to use only : CnameTemplate=[A-Z][a-z]{3,3}[A-Za-z0-9]*
# will allow names with first capital letter, next three small letters,
# and any (capital or not) letter or number, like ZbigN1eW
# Most rational to have CnameTemplate=[A-Z][a-z]*
# meaning names only of letters with first one capital, like Zbigniew
# Default .* - any namy of any symbols
CnameTemplate = .*
PetNameTemplate = .*

# Maximum number of chars per account - Default 7 (0 = unlimited [7 is the client limit])
CharMaxNumber = 7

# Define how many players are allowed to play simultaneously on your server.
MaximumOnlineUsers = 1000


# Minimum and maximum protocol revision that server allow to connect.
# You must keep MinProtocolRevision <= MaxProtocolRevision.
MinProtocolRevision = 740
MaxProtocolRevision = 746

#====================================================
#                                L2Dot                              #
# EXTRA fuctions                                  #
# before you set them up ready carefully the info  #
# Thanks Dimis4                                                                          #
#====================================================   
# Activate Protection for unknownPacket flooding 
PacketProtection = False
# How much unknown packets before punishment. 
# If the player send more than 5 unknownPackets per second, the player get punished. 
UnknownPacketsBeforeBan = 5
# Punishments 
# 1 - broadcast warning to gms only 
# 2 - kick player (default) 
# 3 - kick & ban player (Accesslevel -100) 
UnknownPacketsPunishment = 2

O que está errado para eu não conseguir logar nos outros pcs da rede??:daydreaming:

paytaly 28-07-2009 08:28 PM

Se quer que o servidor rode na LAN você deve colocar seu IP de rede no ExternalHostname.
Caso queira que rode na Net (WAN) você deve colocar seu IP externo (No-IP, DDNS, Etc.)
Porém também é necessário as portas do modem estarem abertas.

valmirjt 28-07-2009 08:43 PM

Entaum eu quero que rode aqui nos pcs da lan e para outros players de fora , ou seja na net.
A maneira que está configurado acima , consigo logar só no pc que está o servidor e as pessoas de fora tbm conseguem e quem está em rede não passa da tela de escolher o server , ja tentei de varias formas porem sem sucesso , se alguem souber onde estou errando da uma mão ae....

Obrigado.:daydreaming:

paytaly 28-07-2009 08:58 PM

@valmirjt, se você quer que todo mundo possa logar no seu Servidor, LAN e WAN
você tem que configura-lo para rodar em WAN, porém mesmo sendo em WAN com seu
IP Externo, você conseguirá se conectar da sua Lan.
Até onde eu saiba, não é possível usar seu IP de LAN para sua Lan logar e ao mesmo tempo
usar WAN para os demais logarem, se quiser fazer assim tem que ser tudo WAN como
já havia falado.

valmirjt 28-07-2009 11:17 PM

Dexa eu te fala uma coisa obrigado pela ajuda mais taconfigurado pro pessoal loga certinho

external ta o meu no-ip e internal o ip da placa de rede do pc servidor (10.1.1.20).

mais não to conseguindo msm colocando o ip interno no l2.ini logar nos outros pcs da lan.

to ficandu maluko com issu ja :wacko:

paytaly 29-07-2009 04:00 PM

@valmirjt, tá difícil em? Tu parece que não quer entender!
InternalHostname = SÓ PARA O PC QUE FICA O SERVIDOR! OS OUTROS DEVEM SE CONECTAR
PELO ExternalHostname.

Então, coloca seu Ip externo no l2.ini ai sim o povo da sua Lan vai poder logar.
Ou então coloca seu Ip de rede no ExternalHostname ai só o povo da sua Lan vai conseguir
logar!

Fui claro ou vai precisar desenhar!? ¬¬

valmirjt 29-07-2009 05:49 PM

Não foi claro!!!!!!!!!!!!!!E quero entender......

1º se no internal e no external colocar o ip da rede só consigo logar dentro da lan.

2º se no internal colocar o ip da rede e no external colocar o no-ip todos de fora da lan coseguem logar e eu só consigo logar no pc que tá o servidor , mais não consigo logar em nenhum dos 20 pcs da lan .

O que devo fazer para deixar liberados para todos logarem tanto o pessoal de fora e o pessoal de rede dentro da lan???

Obrigado.:daydreaming:

paytaly 29-07-2009 06:00 PM

Ave Maria!
Cara, pra todo mundo poder logar, você vai ter que colocar seu IP Externo (No-IP, DDNS, etc...)
no ExternalHostname.
Obviamente, você também vai ter que colocar esse IP no seu l2.ini, inclusive vai ser
esse l2.ini com seu IP Externo que vai ser usado para os PCs da sua Lan se conectar.

Agora entendeu?
Os PCs da sua Lan vão se conectar ao servidor pelo IP Externo, não pelo IP de Rede,
assim como os demais.
Resumindo, TODOS SE CONECTAM COM O IP EXTERNO!!!

Não entendeu? Sinto muito, desisto!

valmirjt 29-07-2009 06:14 PM

Obrigado msm , vou tentar fazer issu que vc falow , mais da uma olhada aqui tbm [Somente Usuários Registrados Podem Visualizar os Links Desta PáginaClique aqui para se Registrar]

Setokaiba 29-07-2009 06:15 PM

Sinto cheiro de modem no modo Bridge.


Horários baseados na GMT -3. Agora são 05:26 AM.

Powered by vBulletin® Version 3.8.4
Copyright ©2000 - 2026, Jelsoft Enterprises Ltd.
Search Engine Optimization by vBSEO 3.3.0