Error when starting the server

I get the following when I want to start the rails server:

Server Error: Address already in use - bind(2)
/usr/lib/ruby/1.8/webrick/utils.rb:73:in `initialize’: Address already
in use -
bind(2) (Errno::EADDRINUSE)

Corne Lombaard wrote:

[…] Address already

I’m not familiar with Rails, but it seems you’re trying to start Ruby’s
web server (Webrick). This server sits listening on port 80 for
requests. You probably already have some other server listiening on this
port. E.g. Apache. So make Webrick listen on some other port (E.g. 81).

Albert S. wrote:

Corne Lombaard wrote:

[…] Address already

I’m not familiar with Rails, but it seems you’re trying to start Ruby’s
web server (Webrick). This server sits listening on port 80 for
requests. You probably already have some other server listiening on this
port. E.g. Apache. So make Webrick listen on some other port (E.g. 81).

The default webrick server port is 5432 or 3000 from what I remember.
Shouldn’t conflict with apache unless you configure it differently. You
might also check if its a DHCP conflict, IE: go around your house and
check each ip via:
Linux - ifconfig
Windows - ipconfig

Regards,

  • Mac

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