News:

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

Main Menu

networked install: problems connecting

Started by alehead, April 16, 2018, 06:34:13 PM

Previous topic - Next topic

alehead

Hi,

I have P3D V4.2 running on my main system (192.x.x.41) and PlanG (V3.2.1.151) on my other (192.x.x.2).

I am getting this entry in the PlanG.log:

19:26:54.4 Initiating SimConnect P3D connection.
19:27:15.5 Connect: System.Runtime.InteropServices.COMException (0x80004005): Beim Aufruf einer COM-Komponente wurde ein HRESULT E_FAIL-Fehler zurückgegeben.
   bei System.Runtime.InteropServices.Marshal.ThrowExceptionForHRInternal(Int32 errorCode, IntPtr errorInfo)
   bei LockheedMartin.Prepar3D.SimConnect.SimConnect..ctor(String szName, IntPtr hWnd, UInt32 UserEventWin32, WaitHandle hEventHandle, UInt32 ConfigIndex)
   bei Plan_G3.Model.lm_SimConnect.Connect(IntPtr myWindow)
19:27:15.5 SimConnect P3D connection failed.
19:27:15.5 Disconnected from sim

I have a simconnect.cfg in the PlanG programme directory:

[SimConnect]
Protocol=Ipv4
Address=192.168.1.41
Port=4505
MaxReceiveSize=4096
DisableNagle=0

and a simconnect.xml in the root directory of P3D V4.2 on the main PC:

<?xml version="1.0" encoding="Windows-1252"?>
<SimBase.Document Type="SimConnect" version="1,0">
<Descr>SimConnect Server Configuration</Descr>
<Filename>SimConnect.xml</Filename>
<Disabled>False</Disabled>
<SimConnect.Comm>
   <Disabled>False</Disabled>
   <Protocol>IPv4</Protocol>
   <Scope>Global</Scope>
   <MaxClients>64</MaxClients>
   <Address>192.168.1.41</Address>
   <Port>4505</Port>
</SimConnect.Comm>
</SimBase.Document>

I cannot see what my error is and was hoping whether you, Tim, or anyone else can see the error of my ways.

I would be grateful for any help...

Thanks

Andrew

alehead

And as is so often the case, I worked it out myself...

Thanks to Tim's guide here, which I found 5 minutes ago on the forum...

My mistake was to place the simconnect.xml in the P3D root directory... it should be in the roaming directory in the user profile.

Thanks for the simple instructions on the forum here. If I had read them earlier, I would never have needed ot post in the first place...

A