0

I am using RubyMine. I recently upgraded from Snow Leopard to Yosemite. When I try to set Port 80 I get following error.

/Users/xx/.rvm/rubies/ruby-2.2.1/lib/ruby/2.2.0/socket.rb:206:in `bind': Permission denied - bind(2) for 127.0.0.1:80 (Errno::EACCES)

I did not have such issue on 10.6.8. Is it possible to run on port 80?

Volatil3
  • 12,909
  • 36
  • 122
  • 240

2 Answers2

1

My solution:

vmsudo rails server -p 80 
Hiep Dinh
  • 644
  • 5
  • 8
0

As @sevenseacat said you have to run with sudo for ports below 1024. See this and this.

While we are at it, though, may I recommend pow?

Community
  • 1
  • 1
sebkkom
  • 1,386
  • 15
  • 31
  • rvmsudo is not working either saying: `Warning: can not check `/etc/sudoers` for `secure_path`, falling back to call via `/usr/bin/env`, this breaks rules from `/etc/sudoers`. Run:`. I did this ` export rvmsudo_secure_path=1`, still no difference – Volatil3 Mar 26 '15 at 06:17