Search code examples
ruby-on-railsthin

How can I get thin (the webserver) to be accessible outside of my home network?


I followed the simple instructions for installing the "thin" web server in my ruby application via: http://code.macournoyer.com/thin/

I can see that it is being called when I "start" it. However, while I am able to access the web server using "localhost". I would like to be able to access it using my ip address, or some other way - so that I can send a colleague that's not on my home network to my test app.

while I have fiddled around with some variables (port, host, etc) I am still missing something.

How can I access my thin server from outside of my home network?

Note: I do not have a firewall enabled. - Any thoughts on how to resolve this?


Solution

  • This is more of a network issue than a server setting issue.

    You would probably need to set your router to redirect incoming accesses to your computer, how to do will vary from router to router.

    In most cases there should be a menu in the router that lets you specify a port, and what internal IP address you want the request to be routed to, set that to your machines LAN IP address, and it should be good to go.

    You will probably get a better answer at Server Fault or Super User.