question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

On Windows, "Port "1212"" incorrectly reported as in use.

See original GitHub issue

Prerequisites

Expected Behavior

The app run in dev when running yarn dev.

Current Behavior

On Windows 10 Pro (latest), the app fails at CheckPortInUse.js regardless of ports used (80, 3000, 8080 or the default, 1212).

Possible Solution

Fix, or escalate request for fix for port test in detect-port dependency.

Steps to Reproduce (for bugs)

  1. Setup node 10.x and yarn in a Windows 10 environment.

  2. Ensure Windows Firewall is turned on with default config. Should automatically prompt for network access for each application/environment separately.

  3. Clone the repo. git clone --depth 1 --single-branch --branch master https://github.com/electron-react-boilerplate/electron-react-boilerplate.git your-project-name

  4. Install the dependencies.

$ cd your-project-name
$ yarn
  1. yarn dev

Context

Eventually, I created a separate npm script to run the application.

$ cross-env START_HOT=1 yarn start-renderer-dev
$ cross-env NODE_ENV=development webpack-dev-server --config configs/webpack.config.renderer.dev.babel.js

This works.

I suppose that for some security-related reason, the Windows Firewall either does not respond to the probe in detect-port or denies, when the port is actually not in use and free.

Your Environment

  • Node version : v10.14.2 via nvm for Windows. npm v6.4.1
  • Version or Branch used : master. Latest at time of writing.
  • Operating System and version : Windows 10 Pro 1903 / OS Build 18362.295

Issue Analytics

  • State:closed
  • Created 4 years ago
  • Reactions:8
  • Comments:5

github_iconTop GitHub Comments

5reactions
kbourrocommented, Mar 3, 2022

I have manage to fix the same issue in Windows 11 running the following commands on CMD as Admin

net stop winnat net start winnat

0reactions
LogicQuantcommented, Jul 15, 2022

I have manage to fix the same issue in Windows 11 running the following commands on CMD as Admin

net stop winnat net start winnat

Thank you very much

Read more comments on GitHub >

github_iconTop Results From Across the Web

TCP/IP port exhaustion troubleshooting - Windows Client
Learn how to troubleshoot port exhaustion issues. Port exhaustion occurs when all the ports on a machine are used.
Read more >
How to start jenkins on different port rather than 8080 using ...
Use the following command at command prompt: java -jar jenkins.war --httpPort=9090. If you want to use https use the following command:
Read more >
Port 1212 (tcp/udp) - SpeedGuide
SG Ports Services and Protocols - Port 1212 tcp/udp information, official and unofficial assignments, known security risks, trojans and applications use.
Read more >
Error when connecting to board with new computer
Global variables use 25092 bytes (7%) of dynamic memory, ... 5) [1212] Failed to execute script esptool the selected serial port [1212] ...
Read more >
5 Managing Ports - Oracle Help Center
This chapter describes how to view and change Oracle Fusion Middleware port numbers, such as port numbers used by Oracle WebLogic Server or...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found