To enable a port on the server, use the internal ip of 0.0.0.0 instead of localhost/127.0.01

sudo netstat -ltn