ForeFlight can be connected to Flight Simulator programs running on desktop/laptop computers, or even full-size simulators. Depending on the simulator, the connection can either be via WiFi (using the "UDP" protocol) or by a wired connection to the iPad.
Simulators supported by ForeFlight Mobile include (listed alphabetically) :
1: AeroFly FS 2
2: ELITE
3: Frasca
5: Microsoft Flight Simulator: MSFS2020, FSX, and 2004
6: Prepar3D
7: RedBird
8: X-Plane
IMPORTANT NOTE - iOS 14: when using a Flight Simulator on an iPad or iPhone running iOS14/iPadOS14, be sure to allow "Local Network" access for that flight simulator. This can be set in Apple Settings > Privacy > Local Network > [Simulator app].