Question:
how to host a website using a laptop as a server?
benny
2011-06-07 00:41:49 UTC
i need to host a website using my own computer as a server. I already have a web page i just need a software that allows me to use my computer as a server and host my site..
I need to create a totally independent site like www."my name".com or something like that but i don't
want to host my files in any other sites
so any help will be deeply appreciated
Six answers:
2011-06-07 01:05:32 UTC
This can be a very complicated process. Trust me, I am a system administrator for a website hosting firm. If you need a host, then you can use www.crynetservers.com or contact us for better deals.



The first thing you need to do is install a web server. The best type of web server in my opinion is Microsoft IIS (Internet Information Services) but that is only with Windows Server and a limited version comes on Windows XP Professional, Windows Vista, and Windows 7 (certain versions). Check how to do this.



Now if you are into a little less user friendly but simpler and more straight forward setup, then I suggest using Apache HTTP server found at their website (http://httpd.apache.org/). You can run the install, install the extensions you want for PHP or password support et cetra, and then finish the install. I also suggest a WAMP stack or LAMP stack if you are on Windows/Linux respectively. These stand for Windows or Linux/Apache/MySQL/PHP. This is to provide you Apache web server, My SQL database support if you will use it, and PHP for hosting portals/forums/code that uses this server-side scripting language.



Essentially, you need a functional web server software program. They will allow you to run independent sites like www.example.com, or even multiple sites on one server instance if you set up what is called Virtual Hosting on one IP address. To find your IP which is vital to this, go to www.crynetservers.com/ip.html to find it.



Once that is running, place your files in the root of where the web server is installed. Verify that they work by going to http://localhost (or http://localhost:port if you are using a port other than port 80). Port 80 is the software port that web servers use. It is a TCP port. Localhost is the local address of your computer on the scale of only the computer itself.



If that is running, then unblock your laptop's internal IP address (such as 192.168.X.X) - find this by running a command prompt window and typing ipconfig - in your router. It helps if the IP address that your local network is giving to your laptop is static, or has a DHCP lease time of forever. This can be found in your router's settings and documentation. Unblock this IP of your laptop in your router for port 80.



Make sure port 80 is also unblocked on your computer's firewall or virus/security program so that others can connect over this. If this is working, people can access your website/files through your EXTERNAL IP which is the one that can be found at like whatismyip,org.



Then you need to set up your domain name. I suggest No-IP.org for FREE domain names that aren't premium but very good. Or, a free .co.cc website domain which is like your www.myname.com. Create an "A" record for your domain in its control panel that points to your external IP address. You should now be able to access your website. You can also purchase a domain and use the same steps to set it up.



There are a few VERY important things to note here. First of all, if you are doing this on your laptop, then you are likely a home user using a residential internet line. Most ISPs in select areas block port 80 or do not allow servers on their networks. Once you unblock the port on your router and firewall you can use canyouseeme.org to find if your ISP is blocking port 80, or call them and ask - if it isn't a high traffic site you will usually be okay. If there is no way around this, you can use No-IP.org to set up a website over another port like 8080. This will forward your domain name example.com for instance to an alternate port. There are some restrictions with this but it is doable through No-IP and DynDNS, which also update your IP address so if it changes people can still access your site and it is automatic.



The final note here is that if you can't access your website at first through going to www.example.com in YOUR house and web browser, don't panic! It could be that your router does not support loopback and therefore you cannot loop and see your own site. Use a proxy or ask a friend over another line to verify that it works.



I really hope this helps. Hit me up if you get stuck or have any questions.
Zach Allen
2011-06-07 01:08:05 UTC
Ok. First, I would recommend taking a look at Apache. It's a piece of software that lets you open up a web server on your computer. If you want a domain name (like www.whatever.com) then you'll need a static ip address from your internet service provider and you'll need to find a website where you can register your domain name, like godaddy.com. I think they charge about $5/month or so for a domain name. Once you get everything setup your domain name will be binded with your ip address and you'll be able to access your website from anywhere.....unless you use a router a home. Do you use a wireless router to connect to the internet?
praveen
2014-05-09 07:18:09 UTC
Yes its possible and easy too!!.



I don't talk much, so my answer will simple.



What you need to perform this?

* A Home-Router(Netgear,Linksys etc)

* A linux based operating System/ Windows works too but Setup in Linux is simple.

* A Domain Name(www..com --- Purchase it from Godaddy or some other provider)



What to do to achieve your goal?

* Learn to install & use/configure Apache in Linux OS, best to use LAMP if you want to use Database(forms, Login pages) in your website. If you want to setup blog like pages, a simple Apache if good to go.

* Make sure to setup your pages and check your pages in browser if it is accessible (Ex : http://localhost)

* Login to your Router Administration page(http://routerlogin.com --- for Netgear)

And go to Advanced>Port forwarding

* Add http port and your system IP (Ex: 192.168.0.2) and apply changes.

* Go to google.com and search for whatismyip, google will find the Public IP of you Internet connection.

*

use the IP as a URL and that will redirect to your Webpage!!!!!!!!!!!!!!!



Than buy your Domain name and add the Public IP to the "Redirect and Mask" option so the IP will not appear your domain name will mask the IP.



I used the same principle and using my Laptop as a webserver.

check http://virtualinn.info --- by the way i don't always switch on my Laptop so the link may not accessible all the time.



Thanks.

Praveen.
2016-03-17 03:55:43 UTC
Yes, but you need to have a static IP address. Most ISPs charge extra for a static IP. Keep in mind that if you're using a wireless router, the IP address your computer says you're using is not the address you would use to access your computer from the outside world.
2014-08-08 23:18:15 UTC
My partner and i recommend applying http://www.vpnmaster.org to unblock sites. I am using their services for more than 3 years without having issues.
2016-09-15 16:46:25 UTC
This is a good question, and one that confused me for many years.


This content was originally posted on Y! Answers, a Q&A website that shut down in 2021.
Loading...