grautur
grautur

Reputation: 30485

start rails server in windows on port 80?

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

Answers (2)

SooDesuNe
SooDesuNe

Reputation: 10030

On some Linux systems you need to be root to bind to ports less than 1024.

Upvotes: 1

grautur
grautur

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

Related Questions