Skip to forum content

You are not logged in. Please login or register.


forums.pvpgn.pro → [EN] Diablo → Question about Multi Realm Setup

Pages 1

You must login or register to post a reply

RSS topic feed

Posts: 5

1

Topic: Question about Multi Realm Setup

Hi guys, currently I want to host a second realm for PvP purpose.
The 1st realm is working well with D2GS and PvPGN,D2CS,D2DBS running on the same machine with Window Server 2008 x86

- Let's assume my 1st machine IP's x.x.x.x (internal are the same with external IP) and my 2nd machine IP's y.y.y.y (192.168.1.120 is the external IP)
- So to be able to run the 2nd realm, I have setup something like this:

1/Create a D2GS on the 2nd machine
- I host the 2nd D2GS on my 2nd machine, which running on Windows 10 x64 (is that okay ? I think so but not sure)
- Edited the d2gs.reg with some small changes like this:

"D2CSIP"="x.x.x.x"
"D2CSPort"=dword:000017e3 (which means It will use port 6115 for D2CS)
"D2DBSIP"="x.x.x.x"
"D2DBSPort"=dword:000017e4 (which means It will use port 6116 for D2DBS)

- Then finishing the setup, installed D2GS as a service...I did check by telnet and It's worked well.
2/Create a duplicate D2CS, D2DBS on the 1st machine (which hosting PvPGN)
- I created a separate D2CS and D2DBS with its config putting in 'conf' folder.
My 2nd D2CS config:

servaddrs        =    y.y.y.y:6115
gameservlist        =    y.y.y.y
bnetdaddr        =    x.x.x.x:6112

My 2nd D2DBS config:

servaddrs    = y.y.y.y:6116
gameservlist            =       y.y.y.y

My 2nd address_translation config:

# Game Translations for clients/games (client data ports)
192.168.1.120:16113   y.y.y.y:16113      192.168.1.0/24  ANY

# Diablo II Character Server translation (d2cs)
192.168.1.120:6115  y.y.y.y:6115      192.168.1.0/24  ANY

# Diablo II Game Server Translation (d2gs)
192.168.1.120:4000   y.y.y.y:4000              NONE                  ANY

3/ Edit realm.conf to let PvPGN know the 2nd realm:

"Realm 1"            "Diablo Realm"        x.x.x.x:6113 ,
"Realm 2"        "PvP Realm"            y.y.y.y:6113

That's it. I also fowarded the needed ports on the 2nd machine. Here are what I get after starting 2nd D2CS and 2nd D2DBS\

2nd D2CS log:

Apr 09 19:01:02 [info ] app_main: D2CS Version 1.10.1.1 Built Apr  3 2018
Apr 09 19:01:02 [info ] pvpgn::d2cs::d2gs_create: added game server 42.115.149.85 (id: 1) to list
Apr 09 19:01:02 [info ] pvpgn::d2cs::d2ladder_readladder: ladder file loaded successfully (28 types 35 maxtype)
Apr 09 19:01:02 [info ] pvpgn::d2cs::d2ladder_init: ladder data initialized
Apr 09 19:01:02 [debug] pvpgn::trans_load: non d2gs input (ignoring) "192.168.1.120:6112"
Apr 09 19:01:02 [debug] pvpgn::trans_load: non d2gs input (ignoring) "192.168.1.120:6115"
Apr 09 19:01:02 [debug] pvpgn::trans_load: Adding Host -> 192.168.1.120:4000, Output -> y.y.y.y:4000, Network 0.0.0.0/0x00000000 - (include) 
Apr 09 19:01:02 [info ] pvpgn::trans_load: trans file loaded
Apr 09 19:01:02 [info ] pvpgn::FDWSelectBackend::FDWSelectBackend: fdwatch select() based layer initialized (max 1000 sockets)
Apr 09 19:01:02 [info ] app_main: server initialized
Apr 09 19:01:02 [info ] pvpgn::d2cs::d2cs_server_process: network initialized
Apr 09 19:01:02 [info ] pvpgn::d2cs::s2s_create: try make s2s connection to x.x.x.x:6112
Apr 09 19:01:02 [info ] pvpgn::d2cs::s2s_create: connection to s2s server x.x.x.x:6112 is in progress
Apr 09 19:01:02 [info ] pvpgn::d2cs::d2cs_conn_create: created session=1 socket=304 (1 current connections)
Apr 09 19:01:02 [error] pvpgn::d2cs::net_listen: error bind listen socket
Apr 09 19:01:02 [error] pvpgn::d2cs::server_listen: error listen socket
Apr 09 19:01:02 [error] pvpgn::d2cs::d2cs_server_process: failed to setup listen socket
Apr 09 19:01:02 [error] app_main: failed to run server
Server Stopped
pvpgn::trans_load: Adding Host -> 192.168.1.120:4000, Output -> y.y.y.y:4000, Network 0.0.0.0/0x00000000 - (include) ]

=> This mean at least D2CS know the IP of D2GS

2nd D2DBS log:

Apr 09 19:02:21 [info ] app_main: D2DBS Version 1.10.1.1 Built Apr  3 2018 10:06:08
Apr 09 19:02:21 [info ] app_main: server initialized
Apr 09 19:02:21 [info ] pvpgn::d2dbs::dbs_server_main: establishing the listener...
Apr 09 19:02:21 [info ] pvpgn::d2dbs::d2ladder_checksum_check: ladder file check pass (checksum=0x-248D3FAE)
Apr 09 19:02:21 [info ] pvpgn::d2dbs::d2ladder_checksum_check: ladder file check pass (checksum=0x-248D3FAE)
Apr 09 19:02:21 [info ] pvpgn::d2dbs::d2ladder_saveladder: backup ladder file
Apr 09 19:02:21 [info ] pvpgn::d2dbs::d2ladder_saveladder: ladder file saved (0 changes)
Apr 09 19:02:21 [error] pvpgn::d2dbs::dbs_server_init: psock_bind() failed : Cannot assign requested address
Apr 09 19:02:21 [error] pvpgn::d2dbs::dbs_server_main: dbs_server_init error 
Server Stopped

I do checked on the 2nd machine that the port 6114 and 6115 are not open. I believed It should be; because D2GS should connect to D2CS and D2DBS on the 1st machine through these ports as it defined in the registry config. Maybe the problem come frome this but I'm not sure and don't know how to fix it.
Any helps will be very appreciated ! Thank you so much !

2 (edited by Karol 09.04.2018 17:48)

Re: Question about Multi Realm Setup

If both d2cs and d2dbs runs on this same machine then:

d2cs

servaddrs        =    x.x.x.x:6115
gameservlist        =    y.y.y.y
bnetdaddr        =    x.x.x.x:6112

d2dbs

servaddrs    =x.x.x.x:6116
gameservlist            =       y.y.y.y

Only second D2GS is on different machine so only that ip is changed.

realm.conf

"Realm 1"            "Diablo Realm"        x.x.x.x:6113
"Realm 2"        "PvP Realm"           x.x.x.x:6115

About address_translation, i dont konw if it is correct or not, I've never used it.


-------

Your config will be ok, if you start host d2cs and d2dbs on the second machine

3

Re: Question about Multi Realm Setup

Hello Karol, thank you for your answer ! For now my 2nd D2GS can connect to D2CS and D2DBS successfully.

I also changed My 2nd address_translation config to :

# Game Translations for clients/games (client data ports)
x.x.x.x:16113  x.x.x.x:16113      192.168.1.0/24  ANY

# Diablo II Character Server translation (d2cs)
x.x.x.x:6115  x.x.x.x:6115      192.168.1.0/24  ANY

# Diablo II Game Server Translation (d2gs)
192.168.1.120:4000   y.y.y.y:4000              NONE                  ANY

and I'm still considering about PvPGN realm.conf, Is the below syntax is true If I want to define 2 realm ?:

"Realm 1"            "Diablo Realm"        x.x.x.x:6113 ,
"Realm 2"        "PvP Realm"            y.y.y.y:6113

Do we need the colon "," between 2 realm ?

4 (edited by Karol 09.04.2018 18:49)

Re: Question about Multi Realm Setup

"," is no needed, new realm is added in new line

as i said before, if both d2cs / d2sbs are on this same machine (ip), in realm.conf you change only port

5

Re: Question about Multi Realm Setup

Karol wrote:

"," is no needed, new realm is added in new line

as i said before, if both d2cs / d2sbs are on this same machine (ip), in realm.conf you change only port

So I guess It will be :

"Realm 1"            "Diablo Realm"        x.x.x.x:6113
"Realm 2"        "PvP Realm"            x.x.x.x:6115

Added: 11.04.2018 10:06

It's totally work well for now smile . Thank you Karol smile

Posts: 5

Pages 1

You must login or register to post a reply

Who now at forum

Currently view post: 1 guest, 0 registered users

forums.pvpgn.pro → [EN] Diablo → Question about Multi Realm Setup