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 trialTrevor Waddell
17,643 PointsCreating own server to host website.
First, thanks for the awesome course!
I know there are hosting sites such as goDaddy, but how do I host my own server? I.e., how do launch my server so that it can accessed other than just on my local machine.
2 Answers
Steven Parker
231,186 PointsThe simplest website is just a file (typically "index.html") that you place on the server which it then gives to anyone connecting to it. From there, you can expand to multiple pages that link to each other, CSS stying, and JavaScript functionality.
Depending on what your site is intended for, you could go even further using server-side apps and scripting.
Happy coding!
Daniel Li
15,244 PointsYou can definitely host a website on your pc/raspberry pi at home. When it is connected to your home network it was assigned an ip address and depending your router, your setup this can be something like 192.168.1.101
If you have another device that is connected to the same home network, just navigate to, for example, http://192.168.1.101
Now if you wish to be able to access your home server from a different network, I think the best way is a paid solution like dyn.com
Trevor Waddell
17,643 PointsTrevor Waddell
17,643 PointsThanks for the feedback. I have updated my question. I understand how a website works. I am confused on how to create a server and have it to where other can access it.