News:

Plan-G has over 1700 followers on FACEBOOK! Click HERE and add your support

Main Menu

FSX on Win7, PlanG on XP; PlanG crashes when connecting

Started by CharlesHBOCB, January 01, 2011, 08:41:39 PM

Previous topic - Next topic

CharlesHBOCB

Hi,
I am still trying to connect from an XP system with PlanG to a Win7 system with FSX using SimConnect.
When connecting I get a Timeout message immediately followed by a PlanG crash.
The crash report has the following error signature:
EventType : clr20r3     P1 : plang.exe     P2 : 2.0.2.481     P3 : 4d05571c
P4 : beatlesblog.simconnect     P5 : 0.1.1.0     P6 : 4a593cba     P7 : 65     
P8 : 6f     P9 : system.nullreferenceexception

The PlanG log says at the end:
20:58:41.6 ProcessMetars done
21:06:21.0 RibbonButton_Click_ConnectFS
21:06:21.3 SimConnect.Connect
21:06:21.3 SimConnect.Connect - Remote. Mode = IPv4 Server = 192.168.0.188 Port = 4506
21:06:42.1 SimConnect remote connection timed out
21:06:42.1 SimConnect.Disconnect
21:06:43.1  DEBUG: removeUserAircraft
21:06:43.1  DEBUG: removeAIAircraft

SimConnect.klm is the following:
<?xml version="1.0"?>
<SimBase.Document Type="SimConnect" version="1,0">
   <Descr>SimConnect</Descr>
   <Filename>SimConnect.xml</Filename>
   <Disabled>False</Disabled>
   <SimConnect.Comm>
      <Disabled>False</Disabled>
      <Protocol>Auto</Protocol>
      <Scope>local</Scope>
   </SimConnect.Comm>

        <SimConnect.Comm>
                <Disabled>False</Disabled>
                <Protocol>IPv4</Protocol>
                <Scope>global</Scope>
                <Address>192.168.0.188</Address>
                <MaxClients>64</MaxClients>
                <Port>4506</Port>
                <MaxRecSize>4096</MaxRecSize>
                <DisableNagle>False</DisableNagle>
        </SimConnect.Comm>

</SimBase.Document>

PlanG FS Connection is Auto, Network Mode = IPv4, FSX Computer = 192.168.0.188, Server Port = 4506.

I have also tryed with FSX Computer = Pc-fsx in SimConnect.xml and in PlanG options without success.
Pc-fsx is the win7 network name.
Any help welcome.
Thank you in advance
Charles

tim arnot

Can you ping the IP from the Plan-G PC?

It's  not connecting, so either the ip is wrong or something is blocking it or the port is in use. You could try a different port number, otherwise check firewalls, antivirus etc that could be blocking the connection.

Tim. @TimArnot

CharlesHBOCB

Tim,
Thank you for your reply and thank you very much for making your wonderfull program available. It is by far the best for VFR flying.
I have tried to ping the FSX computer from the PlanG computer: OK
I have deactivated antivirus and firewall on both systems: problem remains
I have changed port number in SimConnect.xml and in PlanG FS Connection with antivirus and firewall deactivated: problem remains.
Do you have other suggestions or hints for where to look for a solution as I have reached the boundaries of my PC knowledge.
Thank you in advance
Charles

tim arnot

If the address and port are right, it's being blocked. There's nothing else it can be. The "usual suspects" for blocking are firewall & antivirus. These could be software on either pc or even hardware in the router. Also check your permissions -- you may need to run as administrator.

Tim. @TimArnot

CharlesHBOCB

Thinking that maybe the problem is with my setup of Win7, I have tried a configuration with 2 WinXP systems, with no success.
So I must be doing something basically wrong.
I now have a system called LaptopCOB with PlanG installed. The other system called Flightsim has FSX. I have shared FSX folder and FSX scenery.cfg folder in Flightsim. On LaptopCOB, in PlanG, I have setup locations as instructed and have built the database from Flightsim; the 2 systems are connected and database data has been transferred.
I have tried to ping LaptopCOB from Flightsim and it is OK; I have tried to ping Flightsim from LaptopCOB and it is OK.
I have modified SimConnect.xml on Flightsim as follows

<?xml version="1.0"?>
<SimBase.Document Type="SimConnect" version="1,0">
   <Descr>SimConnect</Descr>
   <Filename>SimConnect.xml</Filename>
   <Disabled>False</Disabled>
   <SimConnect.Comm>
      <Disabled>False</Disabled>
      <Protocol>Auto</Protocol>
      <Scope>local</Scope>
   </SimConnect.Comm>

        <SimConnect.Comm>
                <Disabled>False</Disabled>
                <Protocol>Auto</Protocol>
                <Scope>global</Scope>
                <Address>Flightsim</Address>
                <MaxClients>64</MaxClients>
                <Port>4506</Port>
                <MaxRecvSize>4096</MaxRecvSize>
                <DisableNagle>False</DisableNagle>
        </SimConnect.Comm>

        <SimConnect.Comm>
                <Disabled>False</Disabled>
                <Protocol>IPv4</Protocol>
                <Scope>global</Scope>
                <Address>Flightsim</Address>
                <MaxClients>64</MaxClients>
                <Port>4506</Port>
                <MaxRecvSize>4096</MaxRecvSize>
                <DisableNagle>False</DisableNagle>
        </SimConnect.Comm>

</SimBase.Document>

In PlanG, FS Connection is IPv4, Flightsim, 4506.
On both systems, I have Firewall and antivirus deactivated and I still get no connection with a time out error message.
I have also tried with no success to link PlanG and FSX on the same computer with the same result.
Should I give up or does anyone have an idea.
Thanks in advance
Charles

tim arnot

One other thought: You do have SP2/Acceleration installed for FSX, yes?

Tim. @TimArnot

CharlesHBOCB

Yes, FSX SP2 on Flightsim and FSX SP2/Acceleration on Win7 system.
Is it correct to think that PlanG and FSX can connect through global IPv4 on same machine? If yes, anything special to configure. If I manage to have a SimConnect connection working, I could work from there to move to networked computer by changing only one thing at a time.
Charles

tim arnot

On a single machine, use localhost or 127.0.0.1 for the IP and 0 for the port (IPv4) or ::1 for the IP and 0 for the port (IPv6). You don't need a Simconnect.xml for a local connection.

Tim. @TimArnot

CharlesHBOCB

I have finally managed to create a connection between 2 XP systems. With FSX on Win 7 and PlanG on Win XP, I am still blocked with a timeout message even with all firewall and antivirus deactivated.
I have found a way to get a log of what is happening during the connection. It is XML and I do not know how to decode it. Here is an extract of a repeated event obviously connected to my problem:

- <events>
- <netEvent>
- <header>
  <timeStamp>2011-01-03T17:43:09.173Z</timeStamp>
- <flags numItems="6">
  <item>FWPM_NET_EVENT_FLAG_IP_PROTOCOL_SET</item>
  <item>FWPM_NET_EVENT_FLAG_LOCAL_ADDR_SET</item>
  <item>FWPM_NET_EVENT_FLAG_REMOTE_ADDR_SET</item>
  <item>FWPM_NET_EVENT_FLAG_LOCAL_PORT_SET</item>
  <item>FWPM_NET_EVENT_FLAG_REMOTE_PORT_SET</item>
  <item>FWPM_NET_EVENT_FLAG_IP_VERSION_SET</item>
  </flags>
  <ipVersion>FWP_IP_VERSION_V4</ipVersion>
  <ipProtocol>6</ipProtocol>
  <localAddrV4>192.168.0.188</localAddrV4>
  <remoteAddrV4>192.168.0.198</remoteAddrV4>
  <localPort>4506</localPort>
  <remotePort>2186</remotePort>
  <scopeId>0</scopeId>
  <appId />
  <userId />
  </header>
  <type>FWPM_NET_EVENT_TYPE_CLASSIFY_DROP</type>
- <classifyDrop>
  <filterId>80185</filterId>
  <layerId>13</layerId>
  <reauthReason>0</reauthReason>
  <originalProfile>0</originalProfile>
  <currentProfile>0</currentProfile>
  </classifyDrop>
  </netEvent>
- <netEvent>
- <header>
  <timeStamp>2011-01-03T17:43:12.162Z</timeStamp>
- <flags numItems="6">
  <item>FWPM_NET_EVENT_FLAG_IP_PROTOCOL_SET</item>
  <item>FWPM_NET_EVENT_FLAG_LOCAL_ADDR_SET</item>
  <item>FWPM_NET_EVENT_FLAG_REMOTE_ADDR_SET</item>
  <item>FWPM_NET_EVENT_FLAG_LOCAL_PORT_SET</item>
  <item>FWPM_NET_EVENT_FLAG_REMOTE_PORT_SET</item>
  <item>FWPM_NET_EVENT_FLAG_IP_VERSION_SET</item>
  </flags>
  <ipVersion>FWP_IP_VERSION_V4</ipVersion>
  <ipProtocol>6</ipProtocol>
  <localAddrV4>192.168.0.188</localAddrV4>
  <remoteAddrV4>192.168.0.198</remoteAddrV4>
  <localPort>4506</localPort>
  <remotePort>2186</remotePort>
  <scopeId>0</scopeId>
  <appId />
  <userId />
  </header>
  <type>FWPM_NET_EVENT_TYPE_CLASSIFY_DROP</type>
- <classifyDrop>
  <filterId>80185</filterId>
  <layerId>13</layerId>
  <reauthReason>0</reauthReason>
  <originalProfile>0</originalProfile>
  <currentProfile>0</currentProfile>
  </classifyDrop>
  </netEvent>

192.168.0.188 is the IP address on the Win 7 FSX computer and
192.168.0.198 is the IP address of the Win XP PlanG computer.

Does anyone have the knowledge to decode this or direct me to someone who might.
Thanks in advance
Charles

shivers9

Just to add to this tread...I am having the exact same problem and message trying to connect via network with windows7 (FSX) and XP (Plan G)

Sam :'(

shivers9

Update....I was able to get this config to work for me. I got to thinking and set up the conection using computer name instead of IP address and conected first try. I don't know why the IP route did not worked. Checked it everywhere several times.

Happy Camper!!!
Sam

CharlesHBOCB

Sam,
Thanks for the info.
I have also already tried using the computer name for this connection, with no success.
I think that something in my win 7 configuration might be blockink. Could you update me on what you have on your win 7 system ( firewall and config, folder sharing etc.) this might help me in locating my problem.
Thank you in advance.
Charles

jhkaye

We seem to be having the same problem - I also have FSX on Win-7 and am attempting to run Plan-G on a networked computer running under Windows-XP.  There is a link to SimConnect Tim provided which doesn't work for me directly, but can be found by accessing the following link:

http://msdn.microsoft.com/en-us/library

and searching for SimConnect.  The first reference, msdn.microsoft.com/en-us/library/cc​526983.aspx, is the SDK for SimConnect.  Hope this is helpful.


Jim Kaye

CharlesHBOCB

I have managed to get a connection so please consider my request as closed and thank you for your help,
Charles