how to open a port on mac terminal