elm-lang / elm-reactor

Interactive development tool that makes it easy to develop and debug Elm programs.
BSD 3-Clause "New" or "Revised" License
428 stars 63 forks source link

bad message when port 8000 is already in use #108

Open BethAr opened 9 years ago

BethAr commented 9 years ago

I can't run elm-reactor at all. I have the Elm Platform 0.15 installed, running on Windows 7 x64. I get the following error:

$ elm-reactor
Listening on http://0.0.0.0:8000/
Error on startup:
bind: failed (Permission denied (WSAEACCESS))

Shutting down...
Elm Reactor 0.3.1 (Elm Platform 0.15)
elm-reactor.exe: bind: failed (Permission denied (WSAEACCESS))

Since this is Windows, I also disabled the antivirus and firewall, but no luck.

rshest commented 9 years ago

Just have had a similar problem (that's what brought me here), also on Windows 7 x64.

The default port 8000 was occupied by some other application (in my case NVidia NSight monitor).

running elm-reactor with "-p 8080" fixed the problem.

ManuelDeLeon commented 8 years ago

This happens when the default port 8000 is already taken by another program. In the spirit of friendlier messages elm-reactor should say something like "Default port 8000 is already taken please try another port with 'elm-reactor -p 8080".