开发者

Not ablet to bind address through webrick on rails on Ubuntu AMI

I have got rails setup on linux开发者_开发技巧 (ubuntu)ami. I am trying to bind the ip used to access linux ami but am not able to bind it." Cannot assign requested address - bind(2) (Errno::EADDRNOTAVAIL) " Full rails setup seems to be fine. Am missing something here. The exact need is to access the rails app through different pc.

Plz point me to some ref.


I may not be fully understanding your request but starting your rails server on a particular port:

rails s -p 3000 #rails 3
script/server -p 3000 #rails 2

Then you should be able to access this on a different pc by going to:

http://yourmachinename:3000

If new Pc is on the same network. Otherwise have a look at your firewall settings and open up port 3000 and point it to the local IP of your machine (you can get this from ifconfig). Then get the external IP of your local network and go to:

http://your.external.ip:3000/
0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜