Details
-
Task
-
Status: Resolved
-
Medium
-
Resolution: Fixed
-
None
-
None
-
XEA 2021 Sprint 14, XEA 2021 Sprint 15
-
Description
New Windows Update:
Windows 10 update 1809
Will make Windows reserve a range of ports, including port 50000.
Research Results Thursday 8 Jul 2021:
This happens on windows machines where Hyper-V is installed.
Hyper-V is used to run virtual machines and reserves a huge number of ports, randomly, changing with each startup.
Using the package portscanner the ports do not appear as being used, but trying to use them gives the "code": "ECONNREFUSED".
Possible solutions to investigate:
- Use another port scanning package and see if it has into consideration the reserved ports in windows (https://www.npmjs.com/package/get-port )
- Sacrifice one request after setting the ports and see if it returns ECONNREFUSED
- Ask the user to run the cmd commands to reserve ports to our app