FSDeveloper Community

Go Back   FSDeveloper Community > Microsoft Flight Simulator development > SimConnect > SimConnect

SimConnect Use this forum for all your SimConnect related discussions

Reply
 
Thread Tools Display Modes
  #1  
Old 23 Jun 2009, 10:57
mendiola_loyola mendiola_loyola is offline
  peru
Location: Lima, Perú
Join Date: Oct 2006
Posts: 264
Question Simconnect to read FSX in other PC

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ú
Reply With Quote
  #2  
Old 23 Jun 2009, 12:10
beatle beatle is offline
  us-virginia
Location: Fredericksburg, VA
Join Date: Sep 2006
Posts: 327
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).
__________________
Tim
http://fsandm.wordpress.com/
Reply With Quote
  #3  
Old 23 Jun 2009, 12:48
mendiola_loyola mendiola_loyola is offline
  peru
Location: Lima, Perú
Join Date: Oct 2006
Posts: 264
Thank you for your help Tim.

Alfredo Mendiola Loyola
Lima, Perú
Reply With Quote
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Using Simconnect with Multiplayer - Collection RADIUS & Gamespy Name Geoff_D SimConnect 21 24 Mar 2011 05:19
New to Simconnect homer09001 SimConnect 2 17 Nov 2008 08:31
FSUIPC & Simmconnect version pb Yamasuki SimConnect 0 09 May 2008 08:28
Simconnect, Vista & OPT Amatsukaze SimConnect 1 11 Dec 2007 14:54
SimConnect Simulator Variables FlapsOut SimConnect 3 12 Jun 2007 19:24


All times are GMT -4. The time now is 12:06.

Kirsch designed by Andrew & Austin


Powered by vBulletin® Version 3.8.3
Copyright ©2000 - 2013, Jelsoft Enterprises Ltd.