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]
Related videos on Youtube
Author by
Adeena Lathiya
Updated on September 18, 2022Comments
-
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 about 4 yearsThe response is clearly telling you the status of the port. It's closed.
-
White Mars about 4 yearsThe 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 about 4 yearscan you tell me how to use this command
-
user535733 about 4 yearsSee
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 about 4 yearscan u tell me how to use this command
-
slavov over 3 yearsI have the same issue, and here is my output from netstat: tcp6 0 0 :::8080 :::* LISTEN 0 665011 -