gabriele renzi wrote:
> #http server
> #!/usr/local/bin/ruby
> require 'webrick'
> include WEBrick
> 
> s = HTTPServer.new(
>   :Port            => 2000,
>   :DocumentRoot    => Dir::pwd + "/htdocs"
> )

Looks nice. I tried this example (with minor modifications) and got

[2003-08-21 14:44:46] INFO  WEBrick 1.3.1
[2003-08-21 14:44:46] INFO  ruby 1.8.0 (2003-08-04) [i686-linux]
[2003-08-21 14:44:47] WARN  TCPServer Error: Address family not 
supported by protocol - socket(2)

Could it be because I'm trying to run it inside a 192.* network? (Tried 
googling for that error message, but that didn't help much.)