Welcome to the Treehouse Community

Want to collaborate on code errors? Have bugs you need feedback on? Looking for an extra set of eyes on your latest project? Get support with fellow developers, designers, and programmers of all backgrounds and skill levels here with the Treehouse Community! While you're at it, check out some resources Treehouse students have shared here.

Looking to learn something new?

Treehouse offers a seven day free trial for new students. Get access to thousands of hours of content and join thousands of Treehouse students and alumni in the community today.

Start your free trial

Development Tools

Kevin Becerra
Kevin Becerra
14,243 Points

Why is port 3000 the best port to use when running a node.js application?

Just wanted to know.

1 Answer

As long as you are using a port < 1024, it doesn't actually matter what port you use, so long as the port is not already in use.

Ports < 1024 are priviledged ports and not intended to run normal servers from.

I may very well be wrong, but I suspect we see port 3000 so often just because defaulting to it caught on, similar to how "Hello world" is used in so many tutorials.