Jump to content
Sign in to follow this  
Smerch

Запуск сервера

Recommended Posts

Здравствуйте, у меня есть пара примитивных вопрос по запуску сервера. Так как последний раз занимался этим года 4 назад, то все знания испарились, а на MD не заходит.
Я уже запустил сервер с локальным ip, но когда вписываю свой ip, сервер не запускается. Помню вроде надо было открывать порты , но какие
 

Скрытый текст

[net]
listen_port            = 1978
listen_ip            = 195.58.231.163

[db]
dbserver            = 195.58.231.163
db                    = AccountServer
userid                = ServerTest
passwd                = JqGVwd8K/gfugqDFBZrLKw==

[bill]
enable_bill            = 0
enable_passport        = 0
enable_kickuser        = 0

bill_server1        = 195.58.231.163:7243
bill_server2        = 195.58.231.163:7243

[tom]
enable_tom            = 0

[gs]
GroupServerAndor    = GroupServerAndor
GroupServerAndor1    = GroupServerAndor1
GroupServerAndor2    = GroupServerAndor2
GroupServerAndor5    = GroupServerAndor5
GroupServerAndor6    = GroupServerAndor6
enable_ping            = 1

 

Скрытый текст

[ID]
name            = GameServer00
equment            = system

[Gate]
gate            = 195.58.231.163, 1971

[Map]
map                = garner

[DB]
db_ip            = 195.58.231.163
db_usr            = Servergametest
db_pass            = JqGVwd8K/gfugqDFBZrLKw==

[Socket]
keep_alive        = 120

[BaseID]
BaseID            = 0x50000000

[Entity]
max_ply            = 3000
max_cha            = 15000
max_item        = 30000
max_tnpc        = 300

[Guild]
guild_num        = 10
guild_try_num    = 80

[Item]
item_show_time    = 60
item_prot_time    = 30

[Interval]
say_interval    = 3

[LOG]
log_cha            = 0
log_cal            = 0
log_ai            = 0
log_mission        = 0

[Debug]
supercmd        = 1

[Res]
res_dir            = ./resource
log_dir            = log\\log

//[Large map switch]
db_mapmask        = 1

 

Скрытый текст

[Main]
Name            = PKO138
Version            = 136

[GroupServer]
IP                = 195.58.231.163
Port            = 1976
EnablePing        = 180

[ToClient]
IP                = 0.0.0.0
Port            = 1973
CommEncrypt        = 1
EnablePing        = 60
MaxConnection    = 1000

[ToGameServer]
IP                = 195.58.231.163
Port            = 1971
EnablePing        = 180

[ShowRange]
ShowMin            = 500
ShowMax            = 800
IsUse            = 1

 

Скрытый текст

[Main]
Name                = GroupServerAndor2
Listen_Port            = 1976
Listen_IP            = 195.58.231.163
KeepAlive            = 600
Version                = 103

[AccountServer]
AcctEnable            = 1
Password            = GroupServerAndor2
IP                    = 195.58.231.163
Port                = 1978

[Database]
IP                    = 195.58.231.163
DB                    = GameDB
Login                = Servergametest
Password            = JqGVwd8K/gfugqDFBZrLKw==
MaxVal                = 2000000000

[character]
MaxCharacterNum        = 3
MaxValue            = 30
MaxPerson            = 3000

[friend]
MaxInvitedNum        = 5
InvitedTime            = 30
MaxFriendNum        = 50
FriendGroupNum        = 10

[team]
MaxInvitedNum        = 5
InvitedTime            = 30
MaxPersonNum        = 5

[chat]
MaxChatNumPerPlayer    = 30
maxPlayerPerChat    = 50
WorldInterval        = 60
TradeInterval        = 300
ToYouInterval        = 2
WorldFee            = 1000
WorldFeeInterval    = 1000

[bird]
Argent City            = garner

 

Share this post


Link to post
Share on other sites

Привет, по умолчанию порт, который тебе нужно открыть - 1973. Это прописано в конфиге: 

[ToClient]
IP                = 0.0.0.0
Port              = 1973
CommEncrypt       = 1
EnablePing        = 60
MaxConnection     = 1000

Порт можно поменять, но тогда его придется переписать и в game.exe тоже. Удачи с открытием :) 

Share this post


Link to post
Share on other sites
8 минут назад, Slaiman сказал:

Привет, по умолчанию порт, который тебе нужно открыть - 1973. Это прописано в конфиге: 


[ToClient]
IP                = 0.0.0.0
Port              = 1973
CommEncrypt       = 1
EnablePing        = 60
MaxConnection     = 1000

Порт можно поменять, но тогда его придется переписать и в game.exe тоже. Удачи с открытием :) 

Только 1 этот порт?

 

Share this post


Link to post
Share on other sites

Если все серверные .exe работают на одной машине, то во всех конфигах нужно указывать IP 127.0.0.1.  Единственный IP, который должен отличаться от 127.0.0.1, указывается в GateServer.cfg:

[ToClient]
ip = 0.0.0.0

Это адрес, по которому клиенты будут подключаться к серверу (указывается в ServerSet.bin / IPChanger). В данном случае (0.0.0.0) - все доступные IP сервера.


Share this post


Link to post
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Sign in to follow this  

×
×
  • Create New...