Well, through much googleing I have finally come up with a script that works well to receive messages from other hosts. Yay! I am using this to recieve HL7 messages from a computer that is blindly sending them.

require 'gserver'class Connection < GServer  def initialize(port=3003, *args)    super(port, *args)    Socket.do_not_reverse_lookup = true  #I set this true bc I have dns problems  end  def serve(io)    msg = io.recvfrom(10240)  #I only want to get upto 10mb of info    puts "#{Time.now.strftime('%I:%M:%S%p on %a %b %d, %Y')}"    puts "#{msg}"  endend