Mike
Mike

Reputation: 21

Cannot Access Rails Server From Outside LAN

This is my first post here. I have a rails server I'm running on a dedicated server that I have jail shell access to. I can start up a rails server and access it just fine using the text-based browser elinks running in that jail shell using both internal and public IP's. However, I cannot access the rails server from outside that chrooted environment. Does anyone have any ideas as to what might be going on? Any help would be appreciated. Thanks.

Upvotes: 2

Views: 1081

Answers (1)

Samuel Chandra
Samuel Chandra

Reputation: 1185

You might want to check the followings:

  1. Check if your LAN is protected by a firewall, most router has a firewall inside and they will block many ports.
  2. Assuming you are running script/server, check the firewall if port 3000 is allowed.
  3. I dont think you are using apache/nginx with passenger/mongrel, are you? if yes check the firewall if port 80 is allowed.
  4. Since you said that the dedicated server has a public IP, i am assuming that port forwarding on the firewall is configured correctly.
  5. You have to access your rails server using http://your_server_public_ip:3000.

Hopefully those checks help you troubleshoot the problem

Upvotes: 1

Related Questions