Rails Server

Hi,

I use the standard rails webrick server to run my web application on my
local machine (I access it through 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

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.

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

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

  • Richard

cheers guys!

Richard L. [email protected] 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:
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

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

  • Tyler

A free alternative to dynip is dyndns.com. There are programs you can
download to keep your IP address up to date with the dns server too.