>>>>> "X" == Xiangrong Fang <xrfang / hotmail.com> writes:

X> It runs smoothly. However I found a strange problem. If I run another
X> program (not written in Ruby) using the same port, that program will
X> take control of the port, and my program is "over-ruled"!  However, if
X> the other program runs first, and then I run my ruby one, the ruby
X> program print out error message that it can't bind the port.

 The other program use SO_REUSEADDR, you have the explanation in

http://msdn.microsoft.com/library/default.asp?url=/library/en-us/winsock/winsock/using_so_exclusiveaddruse.asp


Guy Decoux