From: Caleb Tennis Date: 2006-01-21T03:19:25+09:00 Subject: Re: basic WEBrick question > I tried again a while ago and it's now working under Windows. Makes me > think that for some reasons when I killed the server it didn't > immediately free up the port. However, under Linux it's still saying > the port is in use. There's usually a setting you can use to tell the OS to allow you to reuse the port once it's closed. I don't have my Pickaxe in front of me, but I do have my camel book and in Perl there's a "Reuse" parameter that gets passed to new TCP Sockets to be able to reuse the port. I'm guessing Webrick has something similiar. > Is there an easy way I can ask Linux for a list of all the ports in use? "netstat -at" for TCP ports.