My Port is 8081, but when running using npm run dev, It is redirected to Due to this, I am facing issue pointing to other URLs. I want localhost to be 8081. Any idea?

3

1 Answer

it look like you have another process running on port 8081 to list process running on a specific port you can do

on windows

the command to identify the process running on a specific port is

netstat -aon | find /i "listening" 

you can kill the process with

taskkill /f /pid 1234 

on linux

sudo lsof -n -i :8081 | grep LISTEN 

it will show you something with columns

COMMAND PID USER FD TYPE DEVICE SIZE/OFF NODE NAME 

you can kill the process with

kill -9 pid 

the second ones is the pid if you don't want this running process you can stop or kill it

5

Your Answer

Sign up or log in

Sign up using Google Sign up using Facebook Sign up using Email and Password

Post as a guest

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge that you have read and understand our privacy policy and code of conduct.