Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Port 4200 is already in use #17795

Closed
svparijs opened this issue Mar 25, 2019 · 7 comments
Closed

Port 4200 is already in use #17795

svparijs opened this issue Mar 25, 2019 · 7 comments

Comments

@svparijs
Copy link

Since a few days now my Mac cannot start ember serve properly.

 ❯ ember -v                                                                                                                     [14:08:43]
ember-cli: 3.4.4
node: 8.15.1
os: darwin x64

When I start a completely new ember project this also happens:

 ❯ ember server                                                                                                                [14:28:56]
Port 4200 is already in use.

Any idea's how to fix this?

@HEYGUL
Copy link

HEYGUL commented Mar 25, 2019

Can you run this terminal command:
lsof -i :4200

It will list any process which have already open 4200 port on your Mac.

@svparijs
Copy link
Author

Yeah I've done a bit of googling to and did this aswel.

 ❯ lsof -i :4200                                                                                                               [15:00:52]

After running this:

ember serve --port 0

The new app works, again with the regular ember serve command. The actual project works with --port 0 but no longer works when I use ember s.

@pzuraq
Copy link
Contributor

pzuraq commented Mar 25, 2019

Can you try running:

killall node

?

You can also try fully restarting your computer, usually if something has locked the port that'll force it off

@locks
Copy link
Contributor

locks commented Mar 26, 2019

I am closing this issue as it does not seem a bug in Ember itself.
Please refer to #help in our Discord server if you need further assistance!

@locks locks closed this as completed Mar 26, 2019
@svparijs
Copy link
Author

The issue is related to 1 single project. Not the ember project.

@rodrigoyoshida
Copy link

Just to mention that after a fresh install of Ubuntu, Node and Ember I am facing this issue, so it can be related to Ember itself.

@chancancode
Copy link
Member

@rodrigoyoshida see ember-cli/ember-cli#8794

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

6 participants