Skip to content

Troubleshooting

This chapter provides troubleshooting information for common issues encountered with Milan Manager.

Milan Manager failed to bind port on Windows

On some computers, launching Milan Manager may fail with a fatal error message indicating that it cannot bind to port "localhost:60061/2/3". Fatal error. Exception: Failed to bind port "localhost:60061/2/3"

There are two known root causes for this issue:

Firewall

A personal firewall might be blocking Milan Manager's internal communication.

Solution

Please ensure that your firewall allows access to Milan Manager.

TCP dynamic port range

Windows reserves certain TCP ports for dynamic use during runtime. Even if these ports are not actively in use, they may be blocked for other applications. The TCP ports used by Milan Manager might fall within this dynamic range and need to be excluded.

To check the current port range in use, open a PowerShell window with administrator rights:

  1. Press WIN + X, then release both keys and press A.
  2. Within the PowerShell window, use netsh int ipv4 show dynamicport tcp to display the current dynamic port range.
  3. To list existing exceptions, use netsh int ipv4 show excludedportrange protocol=tcp.
Solution

To exclude the ports used by Milan Manager from the dynamic port range, execute the following commands in PowerShell with administrator rights:

  1. Press WIN + X, then release both keys and press A.
  2. net stop winnat to stop the Windows driver managing the dynamic port range.
  3. netsh int ipv4 add excludedportrange protocol=tcp startport=60061 numberofports=3 to exclude the TCP ports used by Milan Manager.
  4. net start winnat to restart the Windows driver managing the dynamic ports.

In rare cases, if one of the ports was already excluded, the second command may fail. Instead, add the ports individually using:

  • netsh int ipv4 add excludedportrange protocol=tcp startport=60061 numberofports=1
  • netsh int ipv4 add excludedportrange protocol=tcp startport=60062 numberofports=1
  • netsh int ipv4 add excludedportrange protocol=tcp startport=60063 numberofports=1