Adeena Lathiya Asked: 2020-03-10 07:02:46 +0800 CST2020-03-10 07:02:46 +0800 CST 2020-03-10 07:02:46 +0800 CST curl: (7) Failed to connect to localhost port 8080 Connection refused 772 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! command-line localhost docker curl 1 Answers Voted BulletBob 2020-03-10T07:05:18+08:002020-03-10T07:05:18+08:00 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]
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
ornc -vz [host] [port]