# Rails Server

**URL:** <https://www.ruby-forum.com/t/rails-server/91252>\
**Category:** Rails\
**Created:** [April 6, 2007, 12:04am UTC](https://www.ruby-forum.com/t/rails-server/91252 "2007-04-06T00:04:01Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![mick](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/m/f04885/32.png) [@mick](https://www.ruby-forum.com/u/mick)\
**Post date:** [April 6, 2007, 12:04am UTC](https://www.ruby-forum.com/t/rails-server/91252/1 "2007-04-06T00:04:01Z")

</div>

Hi,

I use the standard rails webrick server to run my web application on my  
local machine (I access it through [http://localhost:3000](http://localhost:3000) etc etc) but I  
was wondering if there was a way I can access it from the web, e.g.  
using my IP address…?

Any ideas?

Cheers, Mick

---

<div class="post-metadata">

**Author:** ![mick](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/m/f04885/32.png) [@mick](https://www.ruby-forum.com/u/mick)\
**Post date:** [April 6, 2007, 12:26am UTC](https://www.ruby-forum.com/t/rails-server/91252/2 "2007-04-06T00:26:48Z")

</div>

You absolutely can, but ‘How’ depends entirely on your setup. For me, I  
would setup NAT on my cable modem to route port 3000 to my machine and  
open that port on the machine’s firewall.

---

<div class="post-metadata">

**Author:** ![mick](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/m/f04885/32.png) [@mick](https://www.ruby-forum.com/u/mick)\
**Post date:** [April 6, 2007, 12:35am UTC](https://www.ruby-forum.com/t/rails-server/91252/3 "2007-04-06T00:35:49Z")

</div>

As long as your router doesnt have the port blocked you should be able  
to access it using your isp provided ip address.  
Dont know what that is? Try going here

> **[DynIP - Your current IP:](http://www.dynip.com/main/ns/146/doc/69/lang/EN)**
>
> DynIP enables you to run any kind of internet server from your home or business even with a dynamic IP address!

Also if you get tired of trying to remember your dynamic ip address  
from day to day you can pay Dynip 20 bucks and then you can access  
your app with  
[whateveryouwant.dynip.com](http://whateveryouwant.dynip.com)

- Richard

---

<div class="post-metadata">

**Author:** ![mick](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/m/f04885/32.png) [@mick](https://www.ruby-forum.com/u/mick)\
**Post date:** [April 6, 2007, 1:02am UTC](https://www.ruby-forum.com/t/rails-server/91252/4 "2007-04-06T01:02:50Z")

</div>

cheers guys!

---

<div class="post-metadata">

**Author:** ![mick](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/m/f04885/32.png) [@mick](https://www.ruby-forum.com/u/mick)\
**Post date:** [April 6, 2007, 12:43am UTC](https://www.ruby-forum.com/t/rails-server/91252/5 "2007-04-06T00:43:52Z")

</div>

Richard L. [removed\_email\_address@domain.invalid](mailto:removed_email_address@domain.invalid) wrote:

> As long as your router doesnt have the port blocked you should be able  
> to access it using your isp provided ip address.

Not quite… If you’re using WEBrick for script/server, for instance,  
you  
need to run “script/server start -b 0.0.0.0” to tell it to bind to all  
IP  
addresses instead of 127.0.0.1.

> Dont know what that is? Try going here [DynIP - Your current IP:](http://www.dynip.com/main/ns/146/doc/69/lang/EN)  
> Also if you get tired of trying to remember your dynamic ip address  
> from day to day you can pay Dynip 20 bucks and then you can access  
> your app with  
> [whateveryouwant.dynip.com](http://whateveryouwant.dynip.com)

… or you can do the same thing for free with a .yi.org hostname at  
[http://www.yi.org/](http://www.yi.org/) , or a .dyndns.org hostname at  
[http://www.dyndns.org/](http://www.dyndns.org/),  
etc. 🙂

- Tyler

---

<div class="post-metadata">

**Author:** ![mick](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/m/f04885/32.png) [@mick](https://www.ruby-forum.com/u/mick)\
**Post date:** [April 6, 2007, 4:57am UTC](https://www.ruby-forum.com/t/rails-server/91252/6 "2007-04-06T04:57:17Z")

</div>

A free alternative to dynip is [dyndns.com](http://dyndns.com). There are programs you can  
download to keep your IP address up to date with the dns server too.
