I have a application running on port 8180 on my local machine
When I try to wget http://192.168.1.12:8180/auth
from docker container,
I get following error
--2019-10-10 08:17:03-- http://192.168.1.12:8180/auth
Connecting to 192.168.1.12:8180... failed: Connection refused.
I tried following
❯ sudo ufw status [14:17:44]
Status: active
To Action From
-- ------ ----
8180/tcp ALLOW Anywhere
443/tcp ALLOW Anywhere
80/tcp ALLOW Anywhere
8180/tcp (v6) ALLOW Anywhere (v6)
443/tcp (v6) ALLOW Anywhere (v6)
80/tcp (v6) ALLOW Anywhere (v6)
Still getting the same error.
I have also tried --add-host="www.kkk.com:192.168.1.12"
and tried http://www.kkk.com:8180/auth
still got same issue
How to fix this??
❯ netstat -tnl |grep 8180 [16:39:04]
tcp 0 0 127.0.0.1:8180 0.0.0.0:* LISTEN