Hosting A Website On An Old Laptop

noellarkin

Senior Member
Joined
Mar 14, 2021
Messages
998
Reaction score
1,473
want to do this for a hobby weekend project.
I have an old windows 7 laptop lying around that I want to repurpose. I already know how to set up a website on localhost using XAMMP. What I'm curious about is that crucial final step.
When I buy hosting online, I connect a domain to the hosting using the nameservers offered by the hosting service. I can also point the DNS records to the hosting IP address.
How does this work when the "Hosting" is my own laptop, connected to an internet connection whose IP changes from time to time?
Note: I know about the 'security risks' of opening up a computer to the internet - - as mentioned above, this is a spare computer, and I just want to do this as a hobby project so I learn more about how webhosting works.

So let's say I bought a TLD from namecheap, how would I go about point that domain to my laptop-hosted website?
 
Your isp most probably
1) has dynamic ip
2) has blocked incoming traffic on port 80/443.

It is possible to host a site on your laptop. You will need a vps though (a cheap one will suffice). What you need to do is have a reverse tunnel set up 24/7. That tunnel will fetch content from your laptop periodically, and proxy it through the vps.

This is extremely inefficient though, not only from speed perspective, but also because your laptop most probably is very power hungry.


I’d advice not doing what you are trying to. A cheap vps would be far better.
 
There are always those who tell you not to do it (life's full of them), see how many there are.. I would suggest you give it a go and even if unsuccessful you will have learnt a thing or two along the way.
 
you can host sites on your old laptop.
you need a static ip address and required ports should be open,
domain can easily connect with your laptop.
 
Better use it for scraping
 
Back
Top