# Newbie-server bound to 3000, cannot disconnect

**URL:** <https://www.ruby-forum.com/t/newbie-server-bound-to-3000-cannot-disconnect/56822>\
**Category:** Rails\
**Created:** [April 4, 2006, 4:42pm UTC](https://www.ruby-forum.com/t/newbie-server-bound-to-3000-cannot-disconnect/56822 "2006-04-04T16:42:05Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![masonkessinger](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/m/4da419/32.png) [@masonkessinger](https://www.ruby-forum.com/u/masonkessinger)\
**Post date:** [April 4, 2006, 4:42pm UTC](https://www.ruby-forum.com/t/newbie-server-bound-to-3000-cannot-disconnect/56822/1 "2006-04-04T16:42:05Z")

</div>

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.

ERROR MESSAGE:

=\> Booting lighttpd (use ‘script/server webrick’ to force WEBrick)  
=\> Rails application started on [http://0.0.0.0:3000](http://0.0.0.0:3000)  
=\> 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  
Exiting

THANKS

---

<div class="post-metadata">

**Author:** ![masonkessinger](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/m/4da419/32.png) [@masonkessinger](https://www.ruby-forum.com/u/masonkessinger)\
**Post date:** [April 4, 2006, 5:29pm UTC](https://www.ruby-forum.com/t/newbie-server-bound-to-3000-cannot-disconnect/56822/2 "2006-04-04T17:29:44Z")

</div>

Hi Mason,

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

Bill  
----- Original Message -----  
From: “Mason K.” [removed\_email\_address@domain.invalid](mailto:removed_email_address@domain.invalid)  
To: [removed\_email\_address@domain.invalid](mailto:removed_email_address@domain.invalid)  
Sent: 2006-04-04 9:42 AM  
Subject: [Rails] newbie-server bound to 3000, cannot disconnect

---

<div class="post-metadata">

**Author:** ![masonkessinger](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/m/4da419/32.png) [@masonkessinger](https://www.ruby-forum.com/u/masonkessinger)\
**Post date:** [April 4, 2006, 7:41pm UTC](https://www.ruby-forum.com/t/newbie-server-bound-to-3000-cannot-disconnect/56822/3 "2006-04-04T19:41:48Z")

</div>

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

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

kill the process then try running script/server again. (if on \*nix, run  
ps  
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.
