DCS World
FlightLab reads your flight data from DCS World through DCS World's export script. FlightLab can set this up for you in Settings > Game Setup. If you'd rather do it yourself, follow the manual setup.
Microsoft Flight Simulator 2024
FlightLab reads your flight data from Microsoft Flight Simulator 2024 (MSFS 2024) through SimConnect. You don't install anything into MSFS 2024 for FlightLab, and there are no ports to set.
X-Plane 12
FlightLab requests your flight data from X-Plane 12 over UDP, on the same PC. For this, X-Plane 12 must accept incoming connections. FlightLab can switch that on for you in Settings > Game Setup.