curl: (7) Failed to connect to localhost port 8080 Connection refused

63,360

Apparently, port 8080 is not open on the host in question. To see if something is listening on a certain port or if it's open at all, you can use netstat -tlpen | grep 8080 or nc -vz [host] [port]

Share:
63,360

Related videos on Youtube

Adeena Lathiya
Author by

Adeena Lathiya

Updated on September 18, 2022

Comments

  • Adeena Lathiya
    Adeena Lathiya over 1 year

    I am trying to use this command to see the running status of my port, but I am getting this error in a loop. Kindlly help!

    • user535733
      user535733 about 4 years
      The response is clearly telling you the status of the port. It's closed.
    • White Mars
      White Mars about 4 years
      The port 8080 is closed, that's why you are getting error. If you want to check the status of port, you could use netstat command
    • Adeena Lathiya
      Adeena Lathiya about 4 years
      can you tell me how to use this command
    • user535733
      user535733 about 4 years
      See man netstat for complete instructions on how to use the command. See also the many netstat tutorials available online. We are happy to answer questions, but we are not going to re-create those many resources for you.
  • Adeena Lathiya
    Adeena Lathiya about 4 years
    can u tell me how to use this command
  • slavov
    slavov over 3 years
    I have the same issue, and here is my output from netstat: tcp6 0 0 :::8080 :::* LISTEN 0 665011 -