1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

FSXA Simconnect to read FSX in other PC

Discussion in 'SimConnect' started by mendiola_loyola, 23/6/09.

  1. mendiola_loyola

    mendiola_loyola Resource contributor

    Joined:
    18/10/06
    Messages:
    268
    Country:
    peru
    Dear All:

    I have two computers both running FSX, PC1 and PC2.

    PC1: (Master)
    FSX with simconnect installed

    PC2: (Slave)
    FSX with simconnect installed

    I want to make a dll (gauge located in PC2) that read the variables from PC1 and show that information on PC2 (gauge). The Dll will be installed in PC2.

    Is there a way to set up simconnect to read data from other PC?

    Thanks.
    Alfredo Mendiola Loyola
    Lima, PerĂº
  2. beatle

    beatle

    Joined:
    28/9/06
    Messages:
    324
    Country:
    us-virginia
    Should be doable, steps needed:

    Add a SimConnect.cfg file in the same directory as FltSim.exe (see the SimConnect SDK docs for the format of this file) on the PC2 machine.

    In the new SimConnect.cfg file, set the params for index 1 or greater (you can't use zero in this case, since you are a gauge running in-proc, index 0 on the Open command means local in-proc connection) to match the settings for PC1 (ie server name or ip address, port number, etc) - get from SimConnect.XML on PC1 (see below).

    In your gauge (running on PC2), issue a SimConnect_Open call, using the non-zero index that matches the entry you made in the SimConnect.cfg file above.

    On PC1, you will need to edit your SimConnect.XML file to open at least one global IPv4 or IPv6 port, if you don't already have one defined, and use this port number in the SimConnect.cfg file settings on PC2 above.


    When running this setup, you will need to start PC1 before loading the aircraft on PC2 that contains this gauge (else the simconnect connection will fail).
  3. mendiola_loyola

    mendiola_loyola Resource contributor

    Joined:
    18/10/06
    Messages:
    268
    Country:
    peru
    Thank you for your help Tim.

    Alfredo Mendiola Loyola
    Lima, PerĂº

Share This Page