From: "Rs N." Date: 2013-06-15T03:07:37+09:00 Subject: Re: Set up local tcpserver that conencts to socket require 'socket' s = TCPSocket.new 'localhost', 2000 while line = s.gets puts line end s.close ------- thats the socket -- Posted via http://www.ruby-forum.com/.