Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Error: listen EACCES: permission denied 0.0.0.0:3100 #1705

Open
Chriscon1994 opened this issue Jun 25, 2019 · 5 comments
Open

Error: listen EACCES: permission denied 0.0.0.0:3100 #1705

Chriscon1994 opened this issue Jun 25, 2019 · 5 comments

Comments

@Chriscon1994
Copy link

Node.js: v12.4.0.
Windows: 10
NPM: 6.9.0

I keep getting this error and I'm unsure how to resolve it. Any help would be greatly appreciated, error code below:

events.js:177
throw er; // Unhandled 'error' event
^

Error: listen EACCES: permission denied 0.0.0.0:3100
at Server.setupListenHandle [as _listen2] (net.js:1209:19)
at listenInCluster (net.js:1274:12)
at Server.listen (net.js:1362:7)
at Object. (C:\Users\chrisconnolly\customer-support\server.js:167:8)
at Module._compile (internal/modules/cjs/loader.js:774:30)
at Object.Module._extensions..js (internal/modules/cjs/loader.js:785:10)
at Module.load (internal/modules/cjs/loader.js:641:32)
at Function.Module._load (internal/modules/cjs/loader.js:556:12)
at Function.Module.runMain (internal/modules/cjs/loader.js:837:10)
at internal/main/run_main_module.js:17:11
Emitted 'error' event at:
at emitErrorNT (net.js:1253:8)
at processTicksAndRejections (internal/process/task_queues.js:84:9) {
code: 'EACCES',
errno: 'EACCES',
syscall: 'listen',
address: '0.0.0.0',
port: 3100

@valadas
Copy link

valadas commented Jul 5, 2019

possible duplicate of #1668 , I just had this issue and it was caused by a virtual network card.
On windows, I went to Control Panel -> Network Connections and disabled all virtual network interfaces like Fortinet, Hyper-V, Avast VPN, TeamViewer VPN and more, I had many virtual interfaces.

If you cannot disable them all then disable them one by one until you find the culprit and decide what to do from there...

@Bensigo
Copy link

Bensigo commented Sep 19, 2019

You use Sudo if using UNIX .

@AustEcon
Copy link

AustEcon commented Jan 11, 2021

The only thing that fixed this for me (after disabling all but my main network adapter) was to follow the guidelines at the bottom of this article here:
https://www.windowscentral.com/how-regain-internet-access-after-installing-update-windows-10

For a full network reset! Worked immediately on reboot (I have docker for windows and had recently messed about with both switching to windows containers and then back to linux containers + Android virtual machine stuff that needed Hyper-V turned back on...)... Must have played havoc with network adapters...

So the nuclear option: Full network reset 😉

@magictomagic
Copy link

run this .bat file

%1 mshta vbscript:CreateObject("Shell.Application").ShellExecute("cmd.exe","/c %~s0 ::","","runas",1)(window.close)&&exit
cd /d "%~dp0"
net stop winnat
net start winnat
exit

@halfway-there1
Copy link

halfway-there1 commented Oct 3, 2023

I was facing somewhat same issue for most of ports (even on ports above 1024 that don't need any special permission)
This helped me on #Windows. Run the below commands with admin powershell.

net stop winnat
net start winnat

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

6 participants