Dedicated server API listening port

Discussion in 'Technical & Support' started by TheTrackAVL, Nov 3, 2021.

  1. TheTrackAVL

    TheTrackAVL Registered

    Joined:
    Jan 17, 2021
    Messages:
    24
    Likes Received:
    7
    I'm working on automating some processes that include interacting with the dedicated server (ie recovering from a 'red flag' event - setting laps completed and grid order programmatically). Using the dedicated server's /rest/chat API is ideal for this. However, it seems like that API is set to listen on port 5397 and this can't be changed. This is a problem if I'm running more than 1 dedicated server on the same system. In practice, this results in the first dedi I start grabbing the port and any others being inaccessible. I did try both the listening ports in multiplayer.json just in case.

    Is anyone aware of a way to change the API's listening port?

    Thanks in advance,
    Joel
     
  2. TheMenace

    TheMenace Registered

    Joined:
    Dec 27, 2019
    Messages:
    20
    Likes Received:
    28
    There's a setting in player.json:
    Code:
    "WebUI port":5397,
     
  3. TheTrackAVL

    TheTrackAVL Registered

    Joined:
    Jan 17, 2021
    Messages:
    24
    Likes Received:
    7
    Awesome! Thanks! I was stuck in the Multiplayer.json - should've checked player.
     

Share This Page