netcat Use GNU netcat 0.7.1 from Homebrew. # listener netcat -l -p 4444 # sender netcat localhost 4444 # pipe file netcat localhost 4444 < <file> lsof Tell which program is listening on a specific port: lsof -i :4444