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
on 2007-04-06 00:04
on 2007-04-06 00:26
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.
on 2007-04-06 00:35
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 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 - Richard
on 2007-04-06 00:43
Richard Luther <email@example.com> 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 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 ... 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. :-) - Tyler
on 2007-04-06 01:02
on 2007-04-06 04:57
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.