MODEL CONFIG DEFINITION
IMPORTANT! This section relates to a legacy process intended for use with Microsoft Flight Simulator X. It is still valid for Microsoft Flight Simulator but may be changed or even removed at some time in the future and should only be used for support of legacy add-ons.
The SimConnect.cfg
file (which you can get here) contains communication information for the SimConnect client. This file is only required if a client is going to access Microsoft Flight Simulator running on a remote machine, and should be placed in the same folder as the client application or library, on the computer the client is running on.
The SimConnect.cfg
file can contain a number of configurations, identified in sections with the [SimConnect.N]
title. The index number is used as a parameter in the SimConnect_Open
function. This is useful for applications that communicate with a number of different machines that are runningMicrosoft Flight Simulator . The default configuration index is zero, and if there is only one configuration in the file, no index number is required.
The SimConnect.CFG
should be formatted as follows:
[SimConnect.0]
Protocol=Pipe
Port=Custom/SimConnect
Address=127.0.0.1
[SimConnect.1]
Protocol=Ipv6
Port=501
Address=127.0.0.1
; Further connections here if required
Below you can find information on the different sections used in the SimConnect.cfg
file as well as what parameters and values are expected within them.
[SimConnect.N]
This section permits you to define client options for one or more connections:
Parameter | Description | Type |
---|---|---|
Protocol |
Set's the protocol to use for the client connection. The order in which protocols are evaluated is: |
String: Pipe |
Address | The Address of the SimConnect server should be entered in this field and will be the same value as that in the appropriate Comm section of the SimConnect.xml file. The address can be the name of a computer in a Domain Controller environment. |
String |
Port | The Port of the SimConnect server should be entered in this field and will be the same value as that in the appropriate Comm section of the SimConnect.xml file. |
String |
MaxReceiveSize | The maximum packet size. The default is 8192. If the client receives a packet larger than this size, it will disconnect from the server. | Integer |
DisableNagle | Set to 1 (TRUE) to disable the Nagle packet optimization algorithms, otherwise set to 0 (FALSE). | Bool |