From: "Rs N." Date: 2013-06-15T03:01:22+09:00 Subject: Re: Set up local tcpserver that conencts to socket require 'socket' server = TCPServer.new 2000 # Server bind to port 2000 loop do client = server.accept # Wait for a client to connect client.puts "Hello !" client.puts "Time is #{Time.now}" client.close end -- Posted via http://www.ruby-forum.com/.