fork download
  1. require 'socket'
  2. puts (1...65536).map {|p| [p, (s=TCPSocket.new('localhost', p)).read.tap {s.close}].join(' => ') rescue nil}.compact
Success #stdin #stdout 4.71s 8488KB
stdin
Standard input is empty
stdout
Standard output is empty