# Server Repositories¶

The server repository manages client connections and keeps track of any connected clients.

Due to Panda3D doing most of the heavy work, setting up this part of the server in a basic form is very easy.

from direct.distributed.ServerRepository import ServerRepository
from panda3d.core import ConfigVariableInt

class GameServerRepository(ServerRepository):
def __init__(self):
tcpPort = ConfigVariableInt('server-port', 4400).getValue()
dcFileNames = ['direct.dc', 'yourOwnDCFile.dc']

As you see in the example above, we simply have to gather the port and a list of DC files, which we will take a closer look in a later section, and pass all of that to the ServerRepository constructor.