Secured your project, opens localhost: 8080. How can I just run on localhost?

  • one
    specify port number 80? - smellyshovel
  • writes use. What is hanging on it? OC ubuntu - Mikhail Kolomiets
  • You what? Of course not. Someone is already listening. Maybe some nginx or apache. - smellyshovel
  • 2
    sudo netstat -tpln - smellyshovel
  • one
    By the way, if the process is not completed correctly, it is possible that the port is busy, but there is no process. - val

2 answers 2

As is clear from the comments, port 80 is busy. To find out who is listening to him, just run

sudo netstat -tulpn | grep :80 

Most likely, you will see: 80 and: 8080 ports, in the right column - PID / process name.

PS: disable / delete / reconfigure the daemon that sits on the port, then it should work.

  • the command does not print anything .. maybe because I am sitting on the router? - Mikhail Kolomiyets
  • Make sure. as netstat, and grep, and sudo are installed. - val
  • netstat is written once. And didn’t a graphical network monitoring program appear for half a century in bubunt? Now, after all, almost no one knows how to perform passes with hands on the command line. - Sergey

I solved the problem like this: I forwarded port 80 to 8080 via a router on a local ip.