Any way to force outward networking of a game to always go through the Playit.gg connection?

Hi,

I have a pretty decent working set-up for a game server that looks like the following: (Sensitive information removed)

  playit:
    image: ghcr.io/playit-cloud/playit-agent:1.0
    networks:
      genesis:
        ipv4_address: 10.5.0.2
    environment:
      - SECRET_KEY=xxxx

  galaxy-raceways:
    container_name: galaxy-raceways
    hostname: galaxy-raceways
    image: ghcr.io/eoin-oneill-yokai/srb2kart-server-docker:master
    restart: on-failure:3
    networks:
      genesis:
        ipv4_address: 10.5.0.3
    ports:
      - 5029:5029
    volumes:
      - ./kartdata:/data:z
    depends_on:
      - playit

networks:
  genesis:
    driver: bridge
    ipam:
      config:
        - subnet: 10.5.0.0/16
          gateway: 10.5.0.1

And a very simple UDP route to 10.50.0.3:5029 which is the game’s container. This is definitely enough to get the game working well-enough to establish and stabilise connections, players can connect via the ip/port combination when typed into the IP entry field.

However, this doesn’t allow the server to show up on the master server list. Understandably, when you try to register the server with the master server list, it will assume that I’m trying to run the server through my home network connection which will be inaccessible for users (CGNat and all that.)

Logically, if there was a way to disable the network connection of galaxy-raceways to the outside world alone, then I could force all connection information to go through the playit.gg service instead – but I the connection is not considered a “proper” internet connection, so to speak. So, for example, this is what I tried:

services:
  playit:
    image: ghcr.io/playit-cloud/playit-agent:1.0
    networks:
      internet-access:
      genesis:
        ipv4_address: 10.5.0.2
    environment:
      - SECRET_KEY=xxxx
  galaxy-raceways:
    container_name: galaxy-raceways
    hostname: galaxy-raceways
    image: ghcr.io/eoin-oneill-yokai/srb2kart-server-docker:master
    restart: on-failure:3
    networks:
      genesis:
        ipv4_address: 10.5.0.3
    ports:
      - 5029:5029
    volumes:
      - ./galaxy-raceways/kartdata:/data:z
    depends_on:
      - playit

networks:
  internet-access:
    driver: bridge
  genesis:
    driver: bridge
    internal: true
    ipam:
      config:
        - subnet: 10.5.0.0/16
          gateway: 10.5.0.1

Unfortunately, it’s not that simple as the game won’t start properly when it can’t establish a direct-connection to the master server list using the dedicated server.

Is there some way to force the internet connection to use the playit.gg relay, so registration with the master server would actually be the playit.gg ip assigned to playit-gg-agent?

Thanks!