Jump to content
Terblanche

Error: TCPListener

Recommended Posts

Why the continued error RE: TCPListener ...?

Nothing has changed on my rig and PORT 51748 has been enabled/opened via Kaspersky (as it has always been) but the last 24 hours I can't start the SERVER.

 

LOG FILE:

2019-03-03 15:27:39.177   Debug   : ========== AivlaSoft.Efb.Server 2.0.61.0 started ==========
2019-03-03 15:27:39.303   Debug   : CPU = Intel64 Family 6 Model 158 Stepping 9, GenuineIntel, No of proc. = 4
2019-03-03 15:27:39.304   Debug   : OS = Microsoft Windows 10 Pro
2019-03-03 15:27:39.304   Debug   : OS language = en-GB, Language settings = en-GB
2019-03-03 15:27:39.304   Debug   : Number decimal separator = '.'
2019-03-03 15:27:39.304   Debug   : Number group separator = ','
2019-03-03 15:27:39.304   Debug   : Process is 64bit
2019-03-03 15:27:39.329   Debug   : Settings loaded from: C:\Users\Terblanche Jordaan\Documents\AivlaSoft\EFB2\Server\Settings\serverSettings.txt
2019-03-03 15:27:39.331   Debug   : Verify license ...
2019-03-03 15:27:41.213   Debug   : License successfully verified
2019-03-03 15:27:41.217   Debug   : AutoUpdateInterval = 0
2019-03-03 15:27:41.219   Debug   : Verify software version ...
2019-03-03 15:27:41.568   Debug   : Latest versions read
2019-03-03 15:27:41.572   Debug   : Latest version is installed
2019-03-03 15:27:42.381   Debug   : Database selected = P3Dv4.NG-1901/R1
2019-03-03 15:27:42.395   Debug   : Looking for already running simulator ...
2019-03-03 15:27:42.397   Debug   : Simulator is not yet running
2019-03-03 15:27:42.399   Debug   : Loading database ...
2019-03-03 15:27:46.175   Debug   : Database loaded
2019-03-03 15:27:46.176   Debug   : TcpListener created, port #51748
2019-03-03 15:27:46.188   Debug   : Global settings loaded from: C:\Users\Terblanche Jordaan\Documents\AivlaSoft\EFB2\Server\Settings\globalSettings.txt
2019-03-03 15:27:46.492   Debug   : Backups loaded
2019-03-03 15:27:46.496   Debug   : Starting weather (ActiveSky) ...
2019-03-03 15:27:46.500   Debug   : File based weather data started, provider is 'ActiveSky'
2019-03-03 15:27:46.500   Debug   : File = C:\Users\Terblanche Jordaan\AppData\Roaming\Hifi\AS_P3Dv4\Weather\current_wx_snapshot.txt
2019-03-03 15:27:46.501   Debug   : Weather (ActiveSky) started
2019-03-03 15:27:46.502   Debug   : Services started
2019-03-03 15:27:46.503   Debug   : Organized tracks disabled because AIRAC cycle is outdated
2019-03-03 15:27:46.505   Error   : SocketException (Start TCP listener): Only one usage of each socket address (protocol/network address/port) is normally permitted

 

Any suggestion, recommendation, fix for this ...?

I've read all the other forum references to this but the problem persists.

 

Capture.JPG

Share this post


Link to post
Share on other sites
2 hours ago, Terblanche said:

Why the continued error RE: TCPListener ...?

Nothing has changed on my rig and PORT 51748 has been enabled/opened via Kaspersky (as it has always been) but the last 24 hours I can't start the SERVER.

 

Any suggestion, recommendation, fix for this ...?

I've read all the other forum references to this but the problem persists.

 

 

Rebooting the computer does the magic. This is a very rare error coming from .net that so far we were not able to completely eliminate.

Share this post


Link to post
Share on other sites

Thank you Oskar ...

 

I've just noticed something peculiar - 

ASP4 is usually on a second computer that I run via network. That (old) computer is in for repairs, and I'm running ASP4 on same computer for now and that's also when the EFB problem started. When I completely close ASP4 even in 'hidden' (bottom right) and THEN start EFB, everything works as it should.

I'm aware that ASP4 uses PORT 19284 but maybe there is a link between the two.

 

But I'll keep the RESTART in mind, until the other PC is back.

 

Share this post


Link to post
Share on other sites

I'm a new EFB user and started getting this same error after just a few days use. Saw the above reference to ASP4. I was getting ready to load P3DV4.5, already had ASP4 loaded and then tried to load EFB client/server when I got the error message. So I shut down AS and reloaded EFB client/server, this time with no problem, then AS. Both were then running with no conflicts. I did not have to reboot my system. Looks like key to avoiding this problem is loading EFB client/server first followed by AS which apparently I was doing prior to today's use since I had not gotten the error message then.

 

JayGee

Share this post


Link to post
Share on other sites

This all looks like a port-number conflict between EFB and other programs. Unfortunately this cannot be prevented in all situations, as long as port-numbers can be used by each software at its own discretion.

 

If you experience such a conflict you can try to change the port-numbers. Most programs will allow for such.

 

In EFB you can change it as follows:

  1. Quit EFB Server and EFB Client(s)
  2. Locate the file "serverSettings.txt"  which is in (standard installation) "C:\Users\<username>\Documents\AivlaSoft\EFBv2\Server\Settings".
  3. Open this file using Notepad.exe (or any other text editor).
  4. Search for "[Network]"
  5. Change "TcpPortNumber" to a value between 49152 and 65535.
  6. Save the file.

 

Now do the same (points 2 to 6) for each of the Clients.

The file "clientSettings.txt" is usually located in "C:\Users\<username>\Documents\AivlaSoft\EFBv2\Client\Settings".

 

Important:

1) It is important to set the port-number to the identical number for the Server and for each of the Clients. If the numbers are not identical, there will be NO connection possible between the Server and the Client(s).

 

2) Changing a port-number might lead into new troubles with other programs. Sometimes it's kind of 'trial and error' to find a port-number which does not result in a conflict with other running programs. As mentioned above, it is not specified WHICH port-number a program shall use, except from the range between 49152 and 65535 (which are "free" numbers according to RFC6335). A helpful program to get an overview about port-numbers in use (and by which program) is TCPView from Microsoft/Sysinternals.

 

Share this post


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.

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.


×
×
  • Create New...