Welcome to the Treehouse Community

The Treehouse Community is a meeting place for developers, designers, and programmers of all backgrounds and skill levels to get support. Collaborate here on code errors or bugs that you need feedback on, or asking for an extra set of eyes on your latest project. Join thousands of Treehouse students and alumni in the community today. (Note: Only Treehouse students can comment or ask questions, but non-students are welcome to browse our conversations.)

Looking to learn something new?

Treehouse offers a seven day free trial for new students. Get access to thousands of hours of content and a supportive community. Start your free trial today.

JavaScript Build a Simple Dynamic Site with Node.js Creating a Simple Server in Node.js Creating a Simple Server

host name?

why was the host name also is there a connection between ip and ports? would we have to use a different port but the same ip if creating another server? ive been trying to grasp a better understanding on ports and such lately. thanks!

1 Answer

Owen McComas
Owen McComas
8,472 Points

I had the same question while going though this course as well! That is just the localhost IP. As to why the localhost is that seemingly non-intuitive and specific IP, appears to be just is left to speculation. I found this resource of some of that speculation which was interesting to me.