# Configuring the Server (Ruby on Rails: Up and Running 1st Edition)

**URL:** <https://www.ruby-forum.com/t/configuring-the-server-ruby-on-rails-up-and-running-1st-edition/193811>\
**Category:** Rails\
**Created:** [August 24, 2010, 8:10pm UTC](https://www.ruby-forum.com/t/configuring-the-server-ruby-on-rails-up-and-running-1st-edition/193811 "2010-08-24T20:10:37Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![Sze\_C](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/s/c4cdca/32.png) [@Sze\_C](https://www.ruby-forum.com/u/Sze_C)\
**Post date:** [August 24, 2010, 8:10pm UTC](https://www.ruby-forum.com/t/configuring-the-server-ruby-on-rails-up-and-running-1st-edition/193811/1 "2010-08-24T20:10:37Z")

</div>

Hi everybody,  
I am trying to configure the server so that WEBrick runs on a  
different Port and IP Address.  
The Book Ruby on Rails: Up and Running 1st Edition says to change  
script/server

OPTIONS = {  
:port =\> 3030,  
:ip =\> “0.0.0.0”,  
:environment =\> “development”,  
:server\_root =\> File.expand\_path(File.dirname( **FILE** ) + “/…/  
public/”  
),  
:server\_type =\> WEBrick::SimpleServer  
}

What I see in script/server is:

require File.expand\_path(’…/…/config/boot’, **FILE** )  
require ‘commands/server’

How do I configure the server?

I know there is a 2nd Edition of Ruby on Rails: Up and Running but I  
only have the 1st Edition for now.

Thanks,

Sze

---

<div class="post-metadata">

**Author:** ![Sze\_C](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/s/c4cdca/32.png) [@Sze\_C](https://www.ruby-forum.com/u/Sze_C)\
**Post date:** [August 24, 2010, 8:35pm UTC](https://www.ruby-forum.com/t/configuring-the-server-ruby-on-rails-up-and-running-1st-edition/193811/2 "2010-08-24T20:35:13Z")

</div>

It’s probably not advisable to change script/server.

You can change the port and IP address using command line parameters.

–port to change the port  
–binding to change the IP address

Or check out the help to see a list of all available options:

# ruby script/server --help
