Newbie-server bound to 3000, cannot disconnect

I know there is a super easy answer to this, i just can’t remember. I
have fired up my server on port 3000… and want to disconnect it. easy.


=> Booting lighttpd (use ‘script/server webrick’ to force WEBrick)
=> Rails application started on
=> Call with -d to detach
=> Ctrl-C to shutdown server (see config/lighttpd.conf for options)
2006-04-04 09:22:26: (network.c.300) can’t bind to port: 3000 Address
already in use


Hi Mason,

Does calling it with ‘-d’ (per line three in the error message) not do

----- Original Message -----
From: “Mason K.” [email protected]
To: [email protected]
Sent: 2006-04-04 9:42 AM
Subject: [Rails] newbie-server bound to 3000, cannot disconnect

That message is the script/server startup message and it’s telling you
something else is already using port 3000 so it can’t run.

Most likely you already have a instance of lighttpd running on port

kill the process then try running script/server again. (if on *nix, run
a|grep light to get the pid)

if you edit the config/lighttpd.conf file, you can change the port.
this is
useful when you have multiple apps and want to run them simultaneously.

This forum is not affiliated to the Ruby language, Ruby on Rails framework, nor any Ruby applications discussed here.

| Privacy Policy | Terms of Service | Remote Ruby Jobs