.NET Core – Unable to bind to http://localhost:xxxx on IPv4 loopback interface. Error – 4092 EACCES permission

Error – 4092 is a very usual error when you run the .NET core application by using dotnet cli. It means the port has been taken by another app.

You can change port number in the <php>launchSettings.json</php> file to quickly solve the problem. However, if your application use that port on different components, you should kill the running port by using netstat

Run command-line as an Administrator. Then run the below command

netstat -ano | findstr :portnumber

Then you can use taskkill to kill the port with PID

taskkill /PID PIDNumberHere /F

Posted by justinpham

Leave a Reply