netstat -tulnp | grep port_addess to check if port open to everyone or localhost only
tcp 0 0 127.0.0.1:9000 0.0.0.0:* LISTEN -
tcp6 0 0 ::1:9000 :::* LISTEN -
127.0.0.1 mean localhost only