Messing with BSD ports for socket-based communication