Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- STEP1: sbserver->config.json:
- "relay" :
- {
- // ID of relay client for this server.
- // ID should be unique for each server.
- // Range of ID is separated for each server.
- "id" : 1
- ,
- // List of remote address to connect to the SBRelay.
- "remote_addresses" :
- [
- "127.0.0.1:12888"
- ]
- }
- "role" :
- {
- // Whether to enable world server mode.
- "role_world" : true
- ,
- // Whether to enable match server mode.
- "role_match" : true
- ,
- // Whether to enable cross-world server mode.
- "role_cross_world" : false
- }
- ,
- // Configuration for world server.
- "world" :
- {
- // Listening address to accept connection from EOS client.
- // Should be opened to public network. YOUR LAN IP
- "listen_address" : "169.169.169.2:11000"
- ,
- // Remote address to connect to the SBCache.
- "remote_cache_address" : "127.0.0.1:7788"
- ,
- // Remote relay id to connect to the match server.
- "remote_match_server_relay_id" : 1
- }
- ,
- "chat" :
- {
- "remote_relay_id" : 1
- }
- ,
- "shop" :
- {
- "remote_relay_id" : 1
- }
- STEP2: SBRelay->config.json:
- // My SBRelay ID.
- "relay_server_id" : 1
- ,
- // Listening address to accept connection from relay client.
- "listen_address" : "127.0.0.1"
- ,
- // Listening address to accept connection from the SBRelay for interconnection.
- "listen_address_for_interconnection" : "0.0.0.0"
- ,
- // List of remote addresses for interconnection between the SBRelay.
- // Specify remote addresses of the SBRelay except me.
- "relay_server_group" :
- [
- {
- // Whether to use this address.
- "use" : false
- ,
- // ID of remote SBRelay.
- "id" : 101
- ,
- // Remote address to connect to the SBRelay for interconnection.
- "remote_address" : "127.0.0.1"
- }
- ]
- STEP 3: SBserver-match->config.json:
- // Configuration for relay.
- "relay" :
- {
- // ID of relay client for this server.
- // ID should be unique for each server.
- // Range of ID is separated for each server.
- "id" : 101
- ,
- // List of remote address to connect to the SBRelay.
- "remote_addresses" :
- [
- "127.0.0.1:12888"
- ]
- }
- "role" :
- {
- // Whether to enable world server mode.
- "role_world" : false
- ,
- // Whether to enable match server mode.
- "role_match" : true
- ,
- // Whether to enable cross-world server mode.
- "role_cross_world" : false
- }
- ,
- // Configuration for world server.
- "match" :
- {
- // Listening address to accept connection from EOS client.
- // Should be opened to public network. YOUR LAN
- "listen_address" : "169.169.169.2"
- ,
- // Remote address to connect to the SBCache.
- "remote_cache_address" : "127.0.0.1:7788"
- ,
- // Remote relay id to connect to the match server.
- "remote_match_server_relay_id" : 2
- }
- ,
- "chat" :
- {
- "remote_relay_id" : 1
- }
- ,
- "shop" :
- {
- "remote_relay_id" : 1
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement