From: Lloyd Zusman Date: 2004-11-07T09:51:47+09:00 Subject: Re: WEBrick listening on multiple ports? "David G. Andersen" writes: > On Sun, Nov 07, 2004 at 09:26:48AM +0900, Lloyd Zusman scribed: >> It's trivial to do this with a single port, but is there a way to use >> WEBrick to listen on a range of ports in this manner? If so, could >> someone point me to an example or some docs? > > brick = HTTPServer.new(...) > > myports.each { |p| brick.listen(address, p) } > > Works like a charm. I had tried that, but I must have used an invalid 'address' or something ... 'cause now it works. Thanks! -- Lloyd Zusman ljz@asfast.com God bless you.