From: Kr Alfabeta Date: 2008-04-16T21:08:00+09:00 Subject: Re: checking connection to server:port > If socket.connect does not succeed, it will raise an error, otherwise > you should be good to go. See the documentation here > (http://ruby-doc.org/stdlib/libdoc/socket/rdoc/classes/Socket.html) and > here > (http://ruby-doc.org/stdlib/libdoc/socket/rdoc/classes/Socket.html). > > Does that help? > > -Justin Well, I was trying this but it returns the same response when it's possible to connect to IP but not to port (example: port 1234 not binded in server but the response is the same as with binded port 80) -- Posted via http://www.ruby-forum.com/.