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.
How FlightLab gets data from X-Plane 12
- FlightLab sends X-Plane 12 requests for the values it needs (dataref requests over UDP), and X-Plane 12 sends the values back.
- The requests go to the port X-Plane 12 receives on, on your own PC (
127.0.0.1). X-Plane's default receive port is 49000, and FlightLab uses 49000 too until you change it. - While X-Plane 12 disables incoming traffic, it ignores these requests. This is the setting FlightLab's setup changes.
- FlightLab installs no plugin and no files into X-Plane 12.
- Until X-Plane 12 answers, FlightLab repeats its requests every 5 seconds. You can start FlightLab and X-Plane 12 in any order.
- While X-Plane 12 is paused, FlightLab treats it as disconnected, and your overlays stop updating. They continue when you resume.
Automatic setup
- Close X-Plane 12. X-Plane saves its preferences when it quits, which would undo the change, so FlightLab only changes them while X-Plane 12 is closed.
- In FlightLab, open Settings > Game Setup.
- In the X-Plane 12 box, click Configure. If X-Plane 12 isn't the sim selected in FlightLab's top bar, its box is under Other games.
- Wait until the box shows setup complete.
- If X-Plane 12 receives on a different port than FlightLab used, Configure has changed FlightLab's port to match. In that case, restart FlightLab, because FlightLab reads the port when it starts.
The first time you sign in, FlightLab's welcome screens offer the same setup for the sim you pick there (One-time setup). If you skipped it, you can finish it any time in Settings > Game Setup.
What Configure changes
- It finds X-Plane 12 through the list that X-Plane's installer keeps in
%LOCALAPPDATA%\x-plane_install_12.txt, then through your Steam libraries. The folder must containX-Plane.exe. - In
Output\preferences\X-Plane.prfin that folder, it sets_disable_incoming_networkingto0, so X-Plane 12 accepts incoming connections. It adds the line if it's missing, and it creates the file if X-Plane 12 hasn't made one yet. All other lines stay as they are. - It doesn't change the port X-Plane 12 receives on. It reads that port from the
_rcv_portline, or takes 49000 when there is no such line. If FlightLab uses another port, Configure sets FlightLab's X-Plane 12 port to X-Plane's.
Check that it works
Game Setup checks X-Plane 12 each time you open it. The X-Plane 12 box has two checks:
- Game folder: FlightLab found the X-Plane 12 folder.
- Incoming connections:
X-Plane.prfhas_disable_incoming_networking 0, and X-Plane 12 receives on the same port FlightLab uses.
If a check fails, the box lists the checks, marks the failed one with a cross and shows setup incomplete. When both checks pass, the box shows setup complete, and its button changes to Open Folder, which opens the X-Plane 12 folder. To run the checks again, click the arrow next to the button and choose Re-Check Configuration.
Then test the connection:
- In FlightLab's top bar, open the sim selector and pick X-Plane 12. FlightLab only shows live data for the sim selected there.
- Go to Overlays, pick an overlay and click Open overlay.
- Start a flight in X-Plane 12. The overlay shows up with your flight data.
FlightLab's X-Plane 12 port
You find FlightLab's port for X-Plane 12 in Settings > Sim Settings > X-Plane 12, under Connection port. The default is 49000. It must match the port X-Plane 12 receives on. In X-Plane 12, that port is under Settings > Network > UDP Port, as Port we receive on (legacy).
After you change the port, restart FlightLab. FlightLab reads the port when it starts.
Manual setup
Use these steps if Configure can't find X-Plane 12, or if you'd rather make the change yourself.
-
Close X-Plane 12.
-
In your X-Plane 12 folder, open
Output\preferences\X-Plane.prfin a text editor. -
Find the line that starts with
_disable_incoming_networkingand set its value to0. If there is no such line, add it:X-Plane 12\Output\preferences\X-Plane.prf_disable_incoming_networking 0 -
Save the file.
-
Look for the line that starts with
_rcv_port. Its number is the port X-Plane 12 receives on. Without that line, the port is 49000. -
If that port isn't the Connection port in Settings > Sim Settings > X-Plane 12, change Connection port to match, and restart FlightLab.
-
In Settings > Game Setup, click the arrow next to the button in the X-Plane 12 box and choose Re-Check Configuration.
You can also make the change inside X-Plane 12, under Settings > Network: X-Plane 12 must accept incoming connections.
X-Plane 12 saves its preferences when it quits. If you edit X-Plane.prf while X-Plane 12 runs, X-Plane overwrites your change. Close X-Plane 12 first.
Display settings
Overlays on your monitor only show on top of X-Plane 12 while it runs in a window. In X-Plane 12's graphics settings, switch off full screen and use windowed or borderless mode at your monitor's resolution. It looks the same as full screen.
VR overlays are not affected. See Virtual Reality.
Troubleshooting
Configure fails with "Game is running, please close it". Close X-Plane 12 and click Configure again.
Configure fails with "Could not find X-Plane 12". FlightLab didn't find X-Plane 12 in the installer's list or in your Steam libraries, and the box shows Game not detected. Use the manual setup.
Incoming connections fails. Either X-Plane 12 still disables incoming traffic, or it receives on another port than FlightLab's Connection port. Check both as in the manual setup.
Your change in X-Plane.prf is gone. X-Plane 12 overwrote it when it quit. Close X-Plane 12 before you edit the file.
Setup is complete, but the overlays stay empty.
- If FlightLab's port changed, restart FlightLab.
- Make sure X-Plane 12 is the sim selected in FlightLab's top bar.
- Resume the flight if it's paused.
- Run FlightLab on the same PC as X-Plane 12.
Next steps
- Layouts vs Overlays explains the two ways to show overlays.
- The Tools Manager can start your other tools when X-Plane 12 connects.