Jump to content
The simFlight Network Forums

Unable to use STB on a client computer


Recommended Posts

Hi there,

I am new to STB, and trying to have STB on a client PC with no luck. I have read your documentation, and followed it step by step, with no luck.

On my client PC I am running all other P3D V4 program, Like PFPX,  PROATC-X and FSC, so I am aware of the simmconnect files, and I can see both PC on the network.

Now I am getting always unable to connect to P3D error Please make sure flight has completed.

The STB server 4.2.22020.40000 is connecting to P3D using the port # 32123 no problem, as P3D is up and running.

My SIMCONNECT.cfg on my client is this :

[SimConnect]
Protocol=IPV4
Address=192.168.1.30 (This is my P3D IP address)
Port=32123
MaxReceiveSize=4096
DisableNagle=0

and my Simconnect.XML on my P3D is this:

<?xml version="1.0" encoding="windows-1252"?>
<SimBase.Document Type="SimConnect" version="1,0"><Descr>SimConnect</Descr>
<Filename>SimConnect.xml</Filename>
<Disabled>False</Disabled>
<SimConnect.Comm>
<Disabled>False</Disabled>
<Protocol>IPv4</Protocol>
<Scope>global</Scope><Address>192.168.1.30</Address>
<MaxClients>64</MaxClients>
<Port>6811</Port>
<MaxRecvSize>4096</MaxRecvSize>
<DisableNagle>False</DisableNagle>
</SimConnect.Comm><SimConnect.Comm>
<Disabled>False</Disabled>
<Protocol>Auto</Protocol>
<Scope>local</Scope>
<SimConnect.Comm>
<SimConnect.Comm>
<Disabled>False</Disabled>
<Protocol>IPv4</Protocol>
<Address>192.168.1.30</Address>
<Port>32123</Port>
</SimConnect.Comm>
</SimBase.Document>

Can you please help to figure out my issues?

Thanks in advance

Hani

 

 

 

Link to post
Share on other sites

Sorry Hani,

You will need to wait for Simon to help.

Personally, I have STB Clients running on three old separate PC's. One display for Arrivals, one for Departures, and a newer separate one driving an old 40 inch monitor, vertical, for Arrivals/Departures outside my shed leading into the cockpit.

I think Admin rights was the only problem I have had?  You do need to make sure you have exactly the same version of Client as the Server.

Aussie

Link to post
Share on other sites

Hi Today I tried again to connect and this is what I get at the STB screen bottom display

Connecting to Prepar3D V4, please wait.
Simulator connection successful.
Connecting to STB Data Server (STB-DS).
Data Server connection successful, server version 4.2.2020.4000.

However the connection is not working and the red button is lit with connect on it

STB.jpg

Link to post
Share on other sites

I'm surprised you got as far as that, as there are at least two problems in your simconnect.xml:

<SimConnect.Comm>
<Disabled>False</Disabled>
<Protocol>IPv4</Protocol>
<Address>192.168.1.30</Address>
<Port>32123</Port>
</SimConnect.Comm>

The previous SimConnect.Comm stanza before the above does not have a correctly terminated XML statement.

The above should have the "Global" stanza included to export the port on the network.

Please take a look at correcting those items before anything else.

Thanks
Simon

 

Link to post
Share on other sites

Hi Simon,

I adjusted the Simconnect as per you example above, and this is the new error response:

FLW.STB.Utilities.StbDisconnectException: Unable to contact SuperTrafficBoard Data Server.  STB will be disconnected.  Additional details below:

   at Ut2Interface.Ut2RemoteDatabase.OpenAgent() in C:\_Data\Software Development\Flying-W\GitHub\STBforPrepar3D-V4\STB-P3DV4-Client\Traffic Board\Ut2RemoteDatabase.cs:line 673

   at Ut2Interface.Ut2RemoteDatabase..ctor() in C:\_Data\Software Development\Flying-W\GitHub\STBforPrepar3D-V4\STB-P3DV4-Client\Traffic Board\Ut2RemoteDatabase.cs:line 31

   at FLW.STB.Client.STBClient.OpenDataSources() in C:\_Data\Software Development\Flying-W\GitHub\STBforPrepar3D-V4\STB-P3DV4-Client\Traffic Board\STBClient.cs:line 15544

   at FLW.STB.Client.STBClient.CompleteSimConnection() in C:\_Data\Software Development\Flying-W\GitHub\STBforPrepar3D-V4\STB-P3DV4-Client\Traffic Board\STBClient.cs:line 6554

   at FLW.STB.Client.STBClient.ConnectToFs() in C:\_Data\Software Development\Flying-W\GitHub\STBforPrepar3D-V4\STB-P3DV4-Client\Traffic Board\STBClient.cs:line 6511

   at FLW.STB.Client.STBClient.ConnectButton_Click(Object sender, EventArgs e) in C:\_Data\Software Development\Flying-W\GitHub\STBforPrepar3D-V4\STB-P3DV4-Client\Traffic Board\STBClient.cs:line 6606

   at System.Windows.Forms.Control.OnClick(EventArgs e)

   at System.Windows.Forms.Button.OnClick(EventArgs e)

   at System.Windows.Forms.Button.OnMouseUp(MouseEventArgs mevent)

   at System.Windows.Forms.Control.WmMouseUp(Message& m, MouseButtons button, Int32 clicks)

   at System.Windows.Forms.Control.WndProc(Message& m)

   at System.Windows.Forms.ButtonBase.WndProc(Message& m)

   at System.Windows.Forms.Button.WndProc(Message& m)

   at System.Windows.Forms.NativeWindow.Callback(IntPtr hWnd, Int32 msg, IntPtr wparam, IntPtr lparam)

Inner Exception:

The server at net.tcp://hanimaster:32123/stbdata/Ut2Service rejected the session-establishment request.

 

Server stack trace:

   at System.ServiceModel.Channels.ConnectionUpgradeHelper.ValidatePreambleResponse(Byte[] buffer, Int32 count, ClientFramingDecoder decoder, Uri via)

   at System.ServiceModel.Channels.ClientFramingDuplexSessionChannel.SendPreamble(IConnection connection, ArraySegment`1 preamble, TimeoutHelper& timeoutHelper)

   at System.ServiceModel.Channels.ClientFramingDuplexSessionChannel.DuplexConnectionPoolHelper.AcceptPooledConnection(IConnection connection, TimeoutHelper& timeoutHelper)

   at System.ServiceModel.Channels.ConnectionPoolHelper.EstablishConnection(TimeSpan timeout)

   at System.ServiceModel.Channels.ClientFramingDuplexSessionChannel.OnOpen(TimeSpan timeout)

   at System.ServiceModel.Channels.CommunicationObject.Open(TimeSpan timeout)

   at System.ServiceModel.Channels.ServiceChannel.OnOpen(TimeSpan timeout)

   at System.ServiceModel.Channels.CommunicationObject.Open(TimeSpan timeout)

 

Exception rethrown at [0]:

   at System.Runtime.Remoting.Proxies.RealProxy.HandleReturnMessage(IMessage reqMsg, IMessage retMsg)

   at System.Runtime.Remoting.Proxies.RealProxy.PrivateInvoke(MessageData& msgData, Int32 type)

   at System.ServiceModel.ICommunicationObject.Open(TimeSpan timeout)

   at System.ServiceModel.ClientBase`1.System.ServiceModel.ICommunicationObject.Open(TimeSpan timeout)

   at Ut2Interface.Ut2RemoteDatabase.OpenAgent() in C:\_Data\Software Development\Flying-W\GitHub\STBforPrepar3D-V4\STB-P3DV4-Client\Traffic Board\Ut2RemoteDatabase.cs:line 664

Exception Handler Type: ThreadAcception

 

BTW I found another Simmconnect in STB folder on the client PC showing this:

[SimConnect]
Protocol=IPv4
Address=192.168.1.30
Port=32123
MaxReceiveSize=4096
DisableNagle=0


Does this need to be there? beside the one that reside on the main P3D PC under user\name\appdata\Roaming\LM\P3D V4

This is my new Simmconect XML:

<?xml version="1.0" encoding="windows-1252"?>
<SimBase.Document Type="SimConnect" version="1,0">
<Descr>SimConnect</Descr>
<Filename>SimConnect.xml</Filename>
<Disabled>False</Disabled>
<SimConnect.Comm>
<Disabled>False</Disabled>
<Protocol>IPv4</Protocol>
<Scope>global</Scope>
<Address>192.168.1.30</Address>
<MaxClients>64</MaxClients>
<Port>6811</Port>
<MaxRecvSize>4096</MaxRecvSize>
<DisableNagle>False</DisableNagle>
</SimConnect.Comm>
<SimConnect.Comm>
<Disabled>False</Disabled>
<Protocol>Auto</Protocol>
<Scope>local</Scope>
</SimConnect.Comm>
<SimConnect.Comm>
<Disabled>False</Disabled>
<Protocol>IPv4</Protocol>
<Address>192.168.1.30</Address>
<Port>32123</Port>
</SimConnect.Comm>
</SimBase.Document>

Thanks for any help

Hani

 

 

Link to post
Share on other sites
6 hours ago, walouigi said:

BTW I found another Simmconnect in STB folder on the client PC showing this:

[SimConnect]
Protocol=IPv4
Address=192.168.1.30
Port=32123
MaxReceiveSize=4096
DisableNagle=0


Does this need to be there? beside the one that reside on the main P3D PC under user\name\appdata\Roaming\LM\P3D V4

No idea, can you be more precise?  Which file and where?

6 hours ago, walouigi said:

I adjusted the Simconnect as per you example above, and this is the new error response:

FLW.STB.Utilities.StbDisconnectException: Unable to contact SuperTrafficBoard Data Server.  STB will be disconnected.  Additional details below:

Now we are starting to get to it.  Either your STBDS is not running on your PC computer, a firewall somewhere blocks the port or one or both ends are misconfigured.    Please send me:

1) The TrafficBoardFrontEnd.exe.config file from the STB Client

2) The StbDataServer.exe.config from the simulator PC.

Thanks
Simon

Link to post
Share on other sites

Hi Simon,

Re your question about the simconnect found in my Client PC, I just deleted, as I have put it in there, that's my bad. so no more.

Now on the P3D PC, the STB DS was running and connected to P3D who is running of course, and both PC have the windows firewall turned off. I can access to all the file and folder on either PC no problem.

Here is the TrafficBoardFrontEnd.exe as well the STBdataserver.exe as requested.

Thanks for your help Simon

Hani

 

 

TrafficBoardFrontEnd.exe.config StbDataServer.exe.config

Link to post
Share on other sites
On 4/21/2020 at 10:47 PM, walouigi said:

Hi Simon,

Re your question about the simconnect found in my Client PC, I just deleted, as I have put it in there, that's my bad. so no more.

Now on the P3D PC, the STB DS was running and connected to P3D who is running of course, and both PC have the windows firewall turned off. I can access to all the file and folder on either PC no problem.

Here is the TrafficBoardFrontEnd.exe as well the STBdataserver.exe as requested.

Thanks for your help Simon

Hani

 

 

TrafficBoardFrontEnd.exe.config 3.47 kB · 0 downloads StbDataServer.exe.config 4.29 kB · 0 downloads

Don't see an immediate problem so far.  What happens on your client PC when you do the following DOS command:

ping hanimaster

Thanks

Simon

Link to post
Share on other sites

Hi Simon,

This is the reply I get:

Pinging HaniMaster [192.168.1.31] with 32 bytes of data:
Reply from 192.168.1.31: bytes=32 time<1ms TTL=64
Reply from 192.168.1.31: bytes=32 time<1ms TTL=64
Reply from 192.168.1.31: bytes=32 time<1ms TTL=64
Reply from 192.168.1.31: bytes=32 time<1ms TTL=64

Ping statistics for 192.168.1.31:
    Packets: Sent = 4, Received = 4, Lost = 0 (0% loss),
Approximate round trip times in milli-seconds:
    Minimum = 0ms, Maximum = 0ms, Average = 0ms

Today it changed to 192.168.1.31

Thanks

Hani

TrafficBoardFrontEnd.exe.config

Link to post
Share on other sites

OK, the only thing left to try is your configuration files on my working setup.  I have two of the four requires, but the simconnect related files where cut and paste as text so I can't really use those.  Can you send me them as files please, simconnect.xml and simconnect.cfg

Thanks

Simon

Link to post
Share on other sites

I was able to get this working using your files but with some changes

1) simconnect.cfg, TrafficBoardFrontEnd.exe.config.  Instead of using your IP address and computer name, I used my own.  You don't need to change the versions you have as they are will work for you.  That said I'd recommend using computer names rather than IP addresses, as your address will change if DHCP based.

2) simconnect.xml.  This had some serious problems, the worst being it was trying to start a simconnect server on the port that STB-DS is trying to use for it's own communications.  One will win and the other close down, which is why this isn't working for you.  Why you have this in your simconnect.xml I've no idea, STB would not have put it there so you are better off without it.  I also changed the IP adresss to 0.0.0.0 as it is not necessary to associated it with an actual IP address (and causes problems when the DHCP lease expires).  I've added the simconnect.xml file here, you should use that one now.

simconnect.xml

Otherwise I think you are good to go.

Simon

Link to post
Share on other sites

Hi Simon,

Still no go the STB client disconnect as soon as I click on the connect.

I have used the simconnet.xml, and left everything else the same as per your suggestion, and still no go.

I don't know what is the reason now.

Thanls

Link to post
Share on other sites

Sorry to say I don't have any further ideas.  There must be some sort of local problem to one of your computers or your network, as I could make it work with your files there's nothing I can fix in STB to resolve it.

Thanks

Simon

Link to post
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...
×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use. Guidelines Privacy Policy We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.