'Port 8081 is redirected to http://localhost:8082/
My Port is 8081, but when running using npm run dev, It is redirected to http://localhost:8082/. Due to this, I am facing issue pointing to other URLs. I want localhost to be 8081. Any idea?
Solution 1:[1]
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
Sources
This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.
Source: Stack Overflow
| Solution | Source |
|---|---|
| Solution 1 |
