wsm1992
By:
wsm1992

Connection refused When I using browser with other port

October 25, 2017 120 views
Networking Ubuntu 16.04

I can access my host with browser using 80 port, but I get Connection refused when I access my host with other port (like 8080, 81, 82.....). How can I expose more port to access my services?

the output of netstat -lnp as below:

Active Internet connections (only servers)
Proto Recv-Q Send-Q Local Address Foreign Address State PID/Program name
tcp 0 0 127.0.0.1:9000 0.0.0.0:* LISTEN 28886/php-fpm.conf)
tcp 0 0 0.0.0.0:22 0.0.0.0:* LISTEN 1666/sshd
tcp6 0 0 :::3306 :::* LISTEN 15739/docker-proxy
tcp6 0 0 :::2222 :::* LISTEN 14782/docker-proxy
tcp6 0 0 :::8080 :::* LISTEN 15942/docker-proxy
tcp6 0 0 :::80 :::* LISTEN 15161/docker-proxy
tcp6 0 0 :::22 :::* LISTEN 1666/sshd
tcp6 0 0 :::443 :::* LISTEN 15150/docker-proxy

Be the first one to answer this question.