From: Jonathan Entner Date: 2001-09-20T04:05:29+09:00 Subject: [ruby-talk:21405] Re: How to tell if port is in use... "Hal E. Fulton" wrote: > > pigeon% ruby -rsocket -e 'p TCPServer.new("localhost", > 3333);TCPServer.new("localhost", 3333)' > > # > > -e:1:in `new': Address already in use - "bind(2)" (Errno::EADDRINUSE) > > from -e:1 > > pigeon% > > Maybe it's a Windows issue. Not sure how the networking stuff > differs... I think NT is more Unix-like, but I'm using 98 (and > 1.6.3 cygwin). > > In that environment, this one-liner does not give me an error. I tried it on mine (win2k, 1.6.4 cygwin), and didn't get an error either. It just gives the first server's id, and doesn't say anything about the second attempt. -- Jonathan Entner jonathan.entner@jhuapl.edu