744 Forum

Apron => Accessories => Topic started by: perukarlsen on Wed, 5 Apr 2017 11:29

Title: Another unable to connect psx p3d via visualpsx
Post by: perukarlsen on Wed, 5 Apr 2017 11:29
Hello. I am currently setting up a PC for instructional use with psx v10, P3d v2.5 and want to use Visual psx as a scenery generator.
I have followed the instructions with Visual psx but I am not able to make it work.
We use one very powerfull computer where PSX, P3D and Visual PSX are installed.
PSX runs one server and two Clients (on the same computer) for setting up 4 monitors.

If i follow the instructions and
start P3D first and PSX after, PSX will not start a server. It only starts 3 Clients. It is impossible to start a server when P3D is running.
But if I start VisualPSX it finds the scenery files but is not able to Connect to any PSX server (since there are none).

If I start PSX first then it starts with one server and two Clients correctly. Then I start P3D. When I start Visualpsx it can't Connect to anything (Client is boost server).

IP adress is 127.0.0.1 since it's only one computer.

Now I am stuck. Can't find any good solution and have searched all over internett but I am not able to find someone with the same problem.

Is it a firewall issue or some ports that get blocked? I have no idea.

We are running W7.

Hope anybody can help me with this.
Title: Re: Another unable to connect psx p3d via visualpsx
Post by: Hardy Heinlin on Wed, 5 Apr 2017 15:00
Hello,

I can't comment on how to use add-ons, but regarding the PSX start procedure I can assure you that this is completely independent from add-ons. The way PSX starts simply depends on how you start PSX -- it doesn't matter what kind of add-ons are waiting for PSX.

I guess you are using two different methods or files to start PSX, and you probably think you are always using the same method.

Are you using AerowinxNetStart.jar?


Welcome to the forum!

|-|ardy
Title: Re: Another unable to connect psx p3d via visualpsx
Post by: perukarlsen on Wed, 5 Apr 2017 15:12
I'll have to check tomorrow when i'm back at work.
I have made the ini file so that it starts three instances of aerowinx.
Is it different jar files called aerowinw.jar and aerowinxnetstart.jar? And is there a difference?
Thank you for helping me
Title: Re: Another unable to connect psx p3d via visualpsx
Post by: Hardy Heinlin on Wed, 5 Apr 2017 16:25
When AerowinxNetStart.jar starts multiple PSX instances, each instance needs its dedicated pref file (each pref file has to have a different file name). A pref file stores the settings of the Preferences page, e.g. USB, Audio, network settings etc. that is used by the instance which is loading these preferences.

If you use 3 instances, be sure that you have 3 different pref files: 2 for the clients, 1 for the server.

You may want to take a look at this step-by-step tutorial:

http://aerowinx.com/board/index.php?topic=2999.0

Is this of some help?


Regards,

|-|ardy
Title: Re: Another unable to connect psx p3d via visualpsx
Post by: perukarlsen on Wed, 5 Apr 2017 18:25
Aerowinx psx works perfect. I have all the layout and prefs set up like I want to.
As long as only psx runs everything is correct.
Problem starts when I want to use visualpsx to make prepare3d and aerowinx work together.
We want a more realistic scenery.

Title: Re: Another unable to connect psx p3d via visualpsx
Post by: Hardy Heinlin on Wed, 5 Apr 2017 19:10
So you have 2 PSX clients and 1 PSX server running, and then you start your add-ons. And the add-ons don't connect to the PSX server?
Title: Re: Another unable to connect psx p3d via visualpsx
Post by: perukarlsen on Wed, 5 Apr 2017 19:13
Thats correct.
Tried setting one of the psx clients as boost server but no response.
Title: Re: Another unable to connect psx p3d via visualpsx
Post by: Hardy Heinlin on Wed, 5 Apr 2017 19:45
You may try this: Use one PSX instance both as main server and boost server. Then link your add-on with that PSX instance.
Title: Re: Another unable to connect psx p3d via visualpsx
Post by: perukarlsen on Wed, 5 Apr 2017 19:47
Tried that earlier today. Started one instance of psx. Not sure if it was main server and boost server (didn't think I could run main server as boost server). I'll have to check again tomorrow.
Title: Re: Another unable to connect psx p3d via visualpsx
Post by: Hardy Heinlin on Wed, 5 Apr 2017 19:53
If the VisualPSX instructions say you should start P3D first and PSX thereafter, I think you should do it like this.

The question is: Why do you get 3 PSX clients when you do it like this?
Title: Re: Another unable to connect psx p3d via visualpsx
Post by: perukarlsen on Wed, 5 Apr 2017 20:00
Ok I try to explain better.
Our computer runs 5 monitors. (One computer)
We start 3 instances of psx.
Number 1 is main server and shows the main flightdeck on two monitors.
Number 2 is a client and shows eicas on another monitor
Number 3 is a client and shows overhead panel on one monitor.
Last monitor is for instructor and has no client running on it.

Thats why we have 3 clients (1 server, 2 clients).
In addition we want to connect prepare3d via visualpsx.
If we start p3d first, then psx starts up 3 clients but no one of them is server anymore (and it is impossible to turn it on as server).
If we start psx first, then it starts up correctly.
But either way, visualpsx can't connect p3d to psx.
Title: Re: Another unable to connect psx p3d via visualpsx
Post by: Hardy Heinlin on Wed, 5 Apr 2017 20:25
If a PSX instance is unable to be a server at a specific address, this means another server is already running at that address.

Maybe, when you start VisualPSX, another program is automatically started that acts as a server? Unfortunately I'm not the developer of VisualPSX and don't know what the program does or requires.


QuoteThats why we have 3 clients (1 server, 2 clients).

I don't understand this sentence. Are you saying "3 clients = 1 server + 2 clients"? An instance can be either a main client or a main server, not both at a time. Did you mean to say "3 instances = 1 main server + 2 main clients"? (The boost server is an extra feature that can be activated on top of any PSX instance).
Title: Re: Another unable to connect psx p3d via visualpsx
Post by: perukarlsen on Wed, 5 Apr 2017 20:35
3 instances (1 server, 2 clients) is correct.
Since aerowinx linked to visualpsx as a addon i thought it was straight forward to get it working.
Sadly there is no forum or help/faq for visualpsx.
I am stuck hopeing for someone that knows the program and have ideas on how to get it working.
I will continue to look for solutions and try everything.
Thank you so far :)
Title: Re: Another unable to connect psx p3d via visualpsx
Post by: Hardy Heinlin on Wed, 5 Apr 2017 20:41
Instead of VisualPSX you may also try this add-on:

http://aerowinx.com/board/index.php?topic=3629.0

Perhaps it's time to update the Add-on web page ...
Title: Re: Another unable to connect psx p3d via visualpsx
Post by: asboyd on Wed, 5 Apr 2017 21:23
Unfortunately the PSX extension is for P3D V3...
I will see if I can get PSX to run on my main P3D V2.5 pc, as I normally use a separate scenery PC for good frame rates and will advise on my results today (Sydney time currently 06:22) although my machines are running Win 10 64 bit....

Cheers,
Title: Re: Another unable to connect psx p3d via visualpsx
Post by: asboyd on Wed, 5 Apr 2017 22:49
OK, sorry to take so long (now 07:35  ::) )
I have tried a single client, single server setup using one PC and it all works.
First VisualPSX/TrafficPsx
Here is a copy of my config for the SimConnect.cfg file in the VisualPSX directory
"
[SimConnect]
Protocol=IPv4
Address=192.168.92.69
Port=29764
MaxReceiveSize=8192
DisableNagle=1
"
My VisualPSX.cfg file
"
MainHide=True
AutoUpdate=4175760231
MainX=2478
MainY=388
IpAdrMain=127.0.0.1
PortMain=10747
IpAdrBoost=127.0.0.1
PortBoost=10749
PsxDateTime=True
PsxWeather=True
Offsets=0
FsxBattery=True
"
My TrafficPSX.cfg file
"
MainHide=True
MainX=2227
MainY=414
IpAdrMain=127.0.0.1
PortMain=10747
TrafficSend=1
CommsSend=2
Com1FreqLink=1
Com2FreqLink=3
XpndrCodeSource=1
PilotClient=0
XpndrModeSource=0
XpndrIdentSource=0
TransmitSend=FALSE
TransmitKey=0
TransmitText=(NONE)
"
Then there is my PSX config.
I used the default AerowinxNetStart.jar file and added the boost server
I have supplied a link to a zip file containing the preferences screen shots of my config...
https://www.dropbox.com/s/suma2bs5gyl95rm/NetPSX.zip?dl=0
As you can see the only thing I changed from the default is the boost server.

Be aware that VisualPSX needs P3D running, not sitting at the flight menu screen, VisualPSX may need to have the IP addresses changed in the app itself, I had to change the address  to 127.0.0.1 manually even though I had changed the CFG file. PSX may take a couple of seconds to start both server and boost so monitor the status of VisualPSX...
I am using version 5898 of VisualPSX, V2.5 of P3D and 10.1.2 of PSX.

The frame rates on P3D take a good hit when all is running on one machine and due to the multiple screens you may find the displays are a little laggy and may stutter a bit. I am using an AMD 8 core with 64G of ram and a 4 Gb Nvidia card driving 3 displays.
Hope this helps.
By the way I am assuming you have got your network card connected to a switch to enable the IP stack (sorry that is the IT side of me coming out)

Cheers,
Alex B
Title: Re: Another unable to connect psx p3d via visualpsx
Post by: perukarlsen on Thu, 6 Apr 2017 08:15
Thank you. I will be testing a little today.
But tomorrow we start our easter holiday, so I will be away for a week.
I will come back and tell how it goes With Our setup later.
Cheers :D
Title: Re: Another unable to connect psx p3d via visualpsx
Post by: perukarlsen on Thu, 6 Apr 2017 08:48
A little extra info.
if I start P3D first, and PSX after. PSX says it could not listen on port 10747 (and that's why it want start a server, only Clients)
If I start PSX first (1 server starts, and 2 Clients) and then P3D, Boost server says it can't listen on port 10749 (and that's why Visual psx can't Connect to boost server).
So it look's that it is some problem with ports or something.
Search goes on....
Title: Re: Another unable to connect psx p3d via visualpsx
Post by: asboyd on Thu, 6 Apr 2017 09:36
I'll have a closer look at the SimConnect info for P3D. It could be you have the simconnect using the same ports (which are different by default).
Let me check it out and update you.

Cheers,
Alex B
Title: Re: Another unable to connect psx p3d via visualpsx
Post by: Hardy Heinlin on Thu, 6 Apr 2017 15:46
"PSX says it could not listen on port 10747"

This means another server is already running on port 10747.


"If I start PSX first (1 server starts, and 2 Clients) and then P3D, Boost server says it can't listen on port 10749"

This means another server is already running on port 10749.


There can be only one server on a port. Maybe you have an add-on that acts as a server, or another PSX main server or boost server is already started by that add-on and hidden in the background.

Title: Re: Another unable to connect psx p3d via visualpsx
Post by: Gary Oliver on Thu, 6 Apr 2017 16:06
Hi,

If you run 'netstat -a -b' from a command prompt it will tell you which process is listening on which port.  This will help you track down what is blocking PSX from being able to open port 10747 and 10749.

If there is no process doing so it will no doubt be a local firewall rule.  Do you have anything installed except the standard windows firewall ?  If not then use the 'windows firewall with advance security menu' to put all profiles into Allow Mode.

Cheers
Gary
Title: Re: Another unable to connect psx p3d via visualpsx
Post by: perukarlsen on Thu, 6 Apr 2017 17:06
Thank you all. Many good ideas here. I will test this when i'm back from easter holiday. So if you don't here something from me in a week, no worries, i'm just up in the mountains skiing and driving scooter. :)
Title: Re: Another unable to connect psx p3d via visualpsx
Post by: perukarlsen on Thu, 6 Apr 2017 17:18
Quote from: Gary Oliver on Thu,  6 Apr 2017 16:06
If there is no process doing so it will no doubt be a local firewall rule.  Do you have anything installed except the standard windows firewall ?  If not then use the 'windows firewall with advance security menu' to put all profiles into Allow Mode.

Standard windows firewall. I have turned it off. One thing I have to check I remember now, is that our IT compartment has build this computer and installed win7. But they have their own adm account on our computer. Could also be that there are some possibilities that I don't have access to or their adm account is making problems for me.
The computer is not connected to internett by the way.
Title: Re: Another unable to connect psx p3d via visualpsx
Post by: Gary Oliver on Thu, 6 Apr 2017 19:44
Ah!  I wonder if it wont let you bind a port under a non admin account...
Title: Re: Another unable to connect psx p3d via visualpsx
Post by: asboyd on Thu, 6 Apr 2017 21:14
Also check with them to make sure they are not using the port for remote maintenance or background updates/monitoring..!
Cheers

PS enjoy your break.... :)
Title: Re: Another unable to connect psx p3d via visualpsx
Post by: perukarlsen on Tue, 18 Apr 2017 11:34
Well...
Now the problem is solved so far. Got admin rights, but what I probably have doen wrong is simconnect.xml.
I don't know why, but i had changes the port in that file to 10747. Not standard 29674 which it should be.
A week vacation and fresh eyes helped.

Now I have minor adjustmenst left to get it to work Perfect.
problems still to fix:
-Scenery seems to move very quick (Ground speed 11 kts looks like 100 kts)
-There is flames from the Aircraft all the time
-Button inputs in PSX affects P3D. (If I raise gir, then view changes in P3D to spot view)

Thank you again for Your effort in helping me. I will continue to search for sollutions to get everything Perfect and give feedback if I find ways to fix it.
Title: Re: Another unable to connect psx p3d via visualpsx
Post by: cavaricooper on Tue, 18 Apr 2017 11:43
Hello-

Re. your last issue- duplicate assignments in PSX and P3D.... check all and eliminate any (on the same machine).

HTH- C
Title: Re: Another unable to connect psx p3d via visualpsx
Post by: perukarlsen on Tue, 18 Apr 2017 11:48
aaaah. :-)
Thank you.