07-12-2008, 11:00 AM
|
#9 (permalink)
|
|
Amigo SE
Registrado em: Nov 2008
Localização: Rio de Janeiro, RJ
Posts: 597
Agradecido 1,826 Vezes em 246 Posts
Achei Ruim:
Acharam ruim Vezes em Posts
|
Tem como colocar sim o q terá de ser feito é:
é quase a mesma coisa do tuto q o rapaz postou acima sendo q tem q ser 2 mysql instalados, um q cada maquina.
registrar os 2 servidores na maquina q vai ter o login.
liberar a porta 7778 na maquina 2, 3306 na maquina 1 e a 9014 nas 2 maquinas.
apontar o ip do gameserver da maquina 2 para a maquina 1.
# Bind ip of the gameserver, use 0.0.0.0 to bind on all available IPs
GameserverHostname=ip da maquina 2
GameserverPort=7777 <-- porta 7778 q será do segundo servidor
# This is transmitted to the clients connecting from an external network, so it has to be a public IP or resolvable hostname
ExternalHostname=seu no-ip q vai ser o mesmo da maquina 1
# This is transmitted to the client from the same network, so it has to be a local IP or resolvable hostname
InternalHostname=ip da maquina 2
# Define internal networks (10.0.0.0/8,192.168.0.0/16 is default internal networks)
InternalNetworks=
# Define optional networks and router IPs
# IP (200.100.200.100) or fully qualified domain name
# (google.com) that resolves to an IP (use ping to determine if a domain resolves).
# Format: ip,net/mask;ip,net/mask,net/mask
# (mask 192.168.0.0/16 or 192.168.0.0/255.255.0.0 would be 192.168.*.*)
# Note: keep InternalNetworks and OptionalNetworks blank for compatibility with older login server
OptionalNetworks=
# The Loginserver host and port
LoginPort=9014
LoginHost=aqui o IP da maquina 1
# This is the server id that the gameserver will request (i.e. 1 is Bartz)
RequestServerID = 1 <--colocar o numero 2 indicando q é o servidor 2
# 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.SQLServerDriv er
URL=jdbc:mysql://localhost/emu_db <--caminho da db da maquina 2
#URL=jdbc:hsqldb:hsql://localhost/l2jdb
#URL=jdbc:sqlserver://localhost/database=l2jdb/user=sa/password=
Login=root
Password=senha do banco da maquina 2
apos isso configurar o mysql para ter conexão externa.
[Somente Usuários Registrados Podem Visualizar os Links Desta PáginaClique aqui para se Registrar]
creio eu q seja só isso.
|
|
|