Reputation: 30485
I'm on a Windows machine, and I'm trying to start a rails app on port 80. I'm running the command prompt as an administrator, but when I try rails server --port=80
, I get
TCPServer Error: Permission denied - bind(2)
Running on port 81 works fine, though, and I'm not running anything else on port 80. What do I need to do?
Upvotes: 1
Views: 3465
Reputation: 10030
On some Linux systems you need to be root to bind to ports less than 1024.
Upvotes: 1
Reputation: 30485
I ran netstat -a and apparently there was something already running on port 80 by default. (I'd delete the question if I could.)
Upvotes: 1