Page 1 of 2 12 LastLast
Results 1 to 10 of 12

Thread: [SOLVED]2 Dedicated Servers running from the same IP

  1. #1
    Kart Driver
    Join Date
    May 2015
    Posts
    88
    Platform
    PC

    [SOLVED]2 Dedicated Servers running from the same IP

    Hi,
    I've managed to get 2 dedicated servers running from the same IP by changing the query port of one of them.
    My only problem is that only one will show up in Project Cars 2 at a time.
    1. Start pCars2 and browse dedicated servers
    2. Server A shows up but B is missing
    3. Refresh
    4. Server B shows up but A is missing


    Is there something that I need to do in order for them both to show up in the list at the same time?
    Last edited by Laserbeak43; 11-05-2018 at 15:14.
    PSN Laserbeak43
    Steam Laserbeak43

  2. #2
    WMD Member Asturbo's Avatar
    Join Date
    Jun 2012
    Location
    Asturias / Spain
    Posts
    452
    Platform
    PC
    You have to change 4 ports values in the second server configuration file:

    - steamport (default 8766)
    - hostport (default 27015)
    - queryport (default 27016)
    - HTTPApiport (default 9000, only needed if you have enabled HTTP)

    And then you have to forward this aditional ports from your router. Obviously also a different name, but I think that you have done.

    If you have changed only the query port, I'm sure that the other ports are in conflict in the two instances with weird results.
    Last edited by Asturbo; 15-05-2018 at 09:19.
    CPU: Intel i7-8700K | GPU: nVidia GTX 1080 | RAM: Gskill 2x8GB DDR4 3200 | MB: Asus ROG Strix Z370 | SSD: Samsung 951 PCI 250GB | Monitor: Asus VG248 144Hz | Wheel: Fanatec CSL | SO: Windows 10 Pro 64bits
    WMD1 & WMD2 Gold Member /// Steam Profile /// Unofficial Issue List /// Button Box Label Template /// DS Flags Calculator
    The following user likes this Post: Laserbeak43


  3. #3
    Kart Driver
    Join Date
    May 2015
    Posts
    88
    Platform
    PC
    That worked! Thanks so much! (And thanks for the DS Flag Calculator!)
    PSN Laserbeak43
    Steam Laserbeak43
    The following user likes this Post: Asturbo


  4. #4
    Kart Driver
    Join Date
    May 2015
    Posts
    88
    Platform
    PC
    How many servers can I run from the same machine? Let's say I wanted to run 6 servers, how would I know which ports to use?
    PSN Laserbeak43
    Steam Laserbeak43

  5. #5
    WMD Member Asturbo's Avatar
    Join Date
    Jun 2012
    Location
    Asturias / Spain
    Posts
    452
    Platform
    PC
    You can use the ports you want, but i prefer using some rules to know with server uses each port. For example:

    Server 1 (defaults)

    - steamport 8766
    - hostport 27015
    - queryport 27016
    - HTTPApiport 9000

    Server 2

    - steamport 8772
    - hostport 27025
    - queryport 27026
    - HTTPApiport 9002

    Server 3

    - steamport 8773
    - hostport 27035
    - queryport 27036
    - HTTPApiport 9003
    ...

    Obviously that ports must be unused and forwarded in the router to your private IP.

    I don't know the limits because there isn't a and oficial system requirement for the DS. But it deppends of your processor and bandwidth. I've seen that not demands much power from the CPU, so I think that the real limit is the number of simultaneous connections that your server/line can manage. Probably depends more of the number of clients simultaneously connected, than the number of DS instances. Usually computers with Windows Server, can manage eficiently more numer of simultaneos connections, so it's better option to host a populated DS envoirment.

    I've ussually 2 DS running in the same server, but one time I tried with 4, and it works without problem in a not very powerfull equipment (that also runs 2 TeamSpeak instances).

    If you use a non windows server OS, be careful with the energy savin options, that could reduce the performance of the DS after some minutes of desktop inactivity.

    One thing I recommend with Windows based hosts, is launching the DS as a service, so you don't need to be logged to the server, and after any restart or power loss, every DS starts automatically. If you need to change any parameter in the config file, you only have to restart the service to get the new configuration.
    Last edited by Asturbo; 15-05-2018 at 11:20.
    CPU: Intel i7-8700K | GPU: nVidia GTX 1080 | RAM: Gskill 2x8GB DDR4 3200 | MB: Asus ROG Strix Z370 | SSD: Samsung 951 PCI 250GB | Monitor: Asus VG248 144Hz | Wheel: Fanatec CSL | SO: Windows 10 Pro 64bits
    WMD1 & WMD2 Gold Member /// Steam Profile /// Unofficial Issue List /// Button Box Label Template /// DS Flags Calculator
    The following user likes this Post: Laserbeak43


  6. #6
    Kart Driver
    Join Date
    May 2015
    Posts
    88
    Platform
    PC
    I have access to putty on my hosted linux server and running netstat -tuplen shows that only steamPort and queryPort are in use on my third server.
    I cannot seem to find and usable number either, so it's not showing up in the pCars2 browser.
    PSN Laserbeak43
    Steam Laserbeak43

  7. #7
    WMD Member Asturbo's Avatar
    Join Date
    Jun 2012
    Location
    Asturias / Spain
    Posts
    452
    Platform
    PC
    Any error in the CMD interface when you start the 3rd server?
    I'll try this evening because I didn't test with 3 or more servers after last DS patches.
    Last edited by Asturbo; 15-05-2018 at 10:37.
    CPU: Intel i7-8700K | GPU: nVidia GTX 1080 | RAM: Gskill 2x8GB DDR4 3200 | MB: Asus ROG Strix Z370 | SSD: Samsung 951 PCI 250GB | Monitor: Asus VG248 144Hz | Wheel: Fanatec CSL | SO: Windows 10 Pro 64bits
    WMD1 & WMD2 Gold Member /// Steam Profile /// Unofficial Issue List /// Button Box Label Template /// DS Flags Calculator

  8. #8
    Kart Driver
    Join Date
    May 2015
    Posts
    88
    Platform
    PC
    Maybe this'll help:
    Code:
    xxxx@xxxxx:~/pcars2/server3$ ./Dedi*
    OS Mem Stats: Total: 0.20 MB, Alloc: 0.08 MB, Free: 0.12 MB
    Creating pool 'System'
    
    //=------------------------------------------------------------------------------------------------------------------=\\
     Code Versions: Engine Date: Mar 22 2018 at 15:21:37
    
       # : v1.5.946.0 -
       :
       : : v1.5.0.0 -
       : : v1.2.0.0 -
       : : v0.0.0.1 -
    
    //=------------------------------------------------------------------------------------------------------------------=\\
    
    
    Command Line (Ansi):
    
    Exec   : ./DedicatedServerCmd.elf
    
    [Internal] Initialised Log
    [Internal] Initialised Log
    _BTitleConfig: Creating default config languages
    ##########################################################
    
       Initialised Session: 02f0-7e25-7ae0-759f
    
                      Exec: ./DedicatedServerCmd.elf
              Command Line:
    
       Base System Memory...
    
                      Size: 16 MB
                  Mem Free: 15113040 bytes (14.41 MB)
                 Max Pools: 16
         Mem Trace Enabled: False
             Title Version: 0xc24e42ab - '0.0.0.0'
       Bootup OS Mem Total: 0.20 MB
       Bootup OS Mem Free : 0.11 MB
       Bootup OS Mem Alloc: 0.08 MB
    
    ##########################################################
    [Internal] Initialised Log
    [OneSock] Linux Network Initialized
    [OneSock] Net_OneSockThread Created and Started Successfully
    Support for GlobalStartProfilerEvent not added yet for linux
    Support for GlobalEndProfilerEvent not added yet for linux
    [2018-05-15 11:32:29] INFO: Starting up the Dedicated Server Library.
    [2018-05-15 11:32:29] INFO: Server configuration loaded:
    - server build version: 1
    - protocol version: 62 (1.0.0.62)
    - server name: My Server - N▒rburgring
    - max session size: 32
    - details: secure, bind IP xxx.xxx.xxx.xxx, Steam port 8773, host port 27016, query port 27026, password protected no
    - whitelist size: 0
    - blacklist size: 0
    - lua api: disabled
    - http api: disabled
    - allow empty join: enabled
    - game setup control: enabled
    - sports play : disabled
    [S_API FAIL] SteamAPI_Init() failed; SteamAPI_IsSteamRunning() failed.
    Setting breakpad minidump AppID = 378860
    [2018-05-15 11:32:29] INFO: HttpApi disabled
    [2018-05-15 11:32:29] INFO: LuaApi disabled
    [2018-05-15 11:32:29] INFO: Dedicated server is starting...
    [2018-05-15 11:32:30] INFO: Connection to Steam established
    [2018-05-15 11:32:30] INFO: Received public IP xxx.xxx.xxx.xxx
    [2018-05-15 11:32:30] INFO: Server logged in with Steam id 9011DoIHideThis? ; server is secure
    [2018-05-15 11:32:30] INFO: Server startup finished: AppId 378860, public IP xxx.xxx.xxx.xxx, Steam id 9011DoIHideThis? ; switching to running state
    PSN Laserbeak43
    Steam Laserbeak43

  9. #9
    WMD Member Asturbo's Avatar
    Join Date
    Jun 2012
    Location
    Asturias / Spain
    Posts
    452
    Platform
    PC
    Mmmmm, try with another circuit. The "ü" of Nürburgring usualy causes issues. May be the problem is the track or the session name, not the 3rd DS instance.

    There is another thread over there with that issue.

    PS: Found. Check here: http://forum.projectcarsgame.com/sho...-2-25-18/page3
    Last edited by Asturbo; 15-05-2018 at 10:35.
    CPU: Intel i7-8700K | GPU: nVidia GTX 1080 | RAM: Gskill 2x8GB DDR4 3200 | MB: Asus ROG Strix Z370 | SSD: Samsung 951 PCI 250GB | Monitor: Asus VG248 144Hz | Wheel: Fanatec CSL | SO: Windows 10 Pro 64bits
    WMD1 & WMD2 Gold Member /// Steam Profile /// Unofficial Issue List /// Button Box Label Template /// DS Flags Calculator
    The following user likes this Post: Laserbeak43


  10. #10
    Kart Driver
    Join Date
    May 2015
    Posts
    88
    Platform
    PC
    LOL. It literally was the U. Thanks again!!
    PSN Laserbeak43
    Steam Laserbeak43
    The following user likes this Post: Asturbo


Similar Threads

  1. Why no dedicated servers?
    By TheBaldReverend in forum Project CARS 2 on Playstation 4
    Replies: 2
    Last Post: 15-01-2018, 19:49
  2. No Dedicated RallyCross Servers?
    By Grinthock in forum Multiplayer
    Replies: 1
    Last Post: 13-01-2018, 11:30
  3. 1 month and still no dedicated servers ?
    By titanic tony in forum Project CARS on Xbox One
    Replies: 10
    Last Post: 11-06-2015, 05:24
  4. will microsoft put dedicated servers on
    By titanic tony in forum Project CARS on Xbox One
    Replies: 19
    Last Post: 27-05-2015, 11:09
  5. Ps4 dedicated servers
    By lordymatsuo in forum Feature Suggestions
    Replies: 0
    Last Post: 25-05-2015, 09:09

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •