Skip to main content
Visitor II
March 9, 2020
Solved

Application server port already in use

  • March 9, 2020
  • 5 replies
  • 2632 views

When starting STM32CubeMonitor it displays a dialog reporting "Application server port already in use"; the application then exits when the dialog is closed.

In the details it says that port 1880 is already in use; however netstat doesn't show this port as being used. (Windows 10, 64-bit).

Any suggestions?

Thanks,

Simon

    This topic has been closed for replies.
    Best answer by SDEME.2

    Just a quick note to help.

    I had exactly the same issue and tracked it down to a bug to STM32CubeMonitor. The ST software basically try to communicate with the wrong network interface. Disabling Hyper-V didn't help here, because I also have VMware installed and it causes the same issue.

    To fix it, you have to disable all virtual network interface in Control Panel\All Control Panel Items\Network Connections

    0693W000006I7ecQAC.png

    5 replies

    ST Employee
    March 9, 2020

    Hello

    Usually, this happens when STM32CubeMonitor is already running. As the port 1880 is already busy, the second instance closes after the warning.

    Have you tried netstat -a ? (On my PC, netstat does not show locals connections)

    Best regards

    Stephane

    Visitor II
    March 9, 2020

    Hi Stephane, thanks for your reply.

    STM32CubeMonitor is not already running; it has just been installed, I've not been able to run it even once. The PC has been rebooted; the issue is the same afterwards. I have tried various netstat options (including the '-a' you suggested); there is no indication that port 1880 is in use as far as I can see.

    Thanks,

    Simon

    Visitor II
    March 10, 2020

    An update; the following command shows ports which are being excluded:

    > netsh int ip show excludedportrange protocol=tcp

    Protocol tcp Port Exclusion Ranges

    Start Port   End Port

    ----------   --------

         1827       1926

         1927       2026

         2027       2126

         2180       2279

         2280       2379

         2456       2555

         2869       2869

         3029       3128

         3719       3818

         5357       5357

         5700       5700

         8884       8884

         8888       8888

        50000      50059    *

    * - Administered port exclusions.

    This was due to 'Hyper-V' - by disabling Hyper-V I have been able to start STM32CubeMonitor sucessfully.

    Kind regards,

    Simon

    ST Employee
    March 10, 2020

    ​Hello Simon

    Thanks a lot for your feedback. It is useful information for people using Hyper-V or similar software. 

    Stephane

    SDEME.2Answer
    Visitor II
    January 10, 2021

    Just a quick note to help.

    I had exactly the same issue and tracked it down to a bug to STM32CubeMonitor. The ST software basically try to communicate with the wrong network interface. Disabling Hyper-V didn't help here, because I also have VMware installed and it causes the same issue.

    To fix it, you have to disable all virtual network interface in Control Panel\All Control Panel Items\Network Connections

    0693W000006I7ecQAC.png