![]() |
|
![]() |
|
|
Thread Tools | Display Modes |
|
|
#1 |
|
Hobbyist Programmer
|
Make a webserver with my computer
when i go to do this do i have to have a website to use?
i am wanting to do this but dont know where to start at. |
|
|
|
|
|
#2 |
|
I eat cake for breakfast.
![]() ![]() ![]() ![]() Join Date: Jul 2004
Location: In my box.
Posts: 4,434
Rep Power: 9
![]() |
If you're hosting it on your own computer, just type your computer's IP address into the address bar. It's 127.0.0.1. You can also use "localhost", which is usually used as a pseudonym for the above IP.
|
|
|
|
|
|
#3 |
|
Unverified User
Join Date: Aug 2005
Location: none
Posts: 146
Rep Power: 0
![]() |
__________________
Warning: My posts may change (dramatically) within the first 15 minutes they're posted. Got 'Nux?—GNU/Linux and other free software support. It's GNU/Linux, not just Linux. |
|
|
|
|
|
#4 |
|
Hobbyist Programmer
Join Date: Jun 2006
Posts: 137
Rep Power: 0
![]() |
Do you have a webserver downloaded on your computer? That would be the first step.
|
|
|
|
|
|
#5 | |
|
Caffeinated Neural Net
Join Date: Jun 2005
Location: Dry west coast of Canada
Posts: 922
Rep Power: 4
![]() |
Quote:
Now, if your computer is connected to a network (internet or otherwise), other computers should be able to enter your computer's IP address, and see whatever start page you've got set up (probably something like "If you're seeing this page, you've successfully installed <web server name here>"). Now, a few points. First, you will need to ensure there is a clear path to your computer. If you're behind a firewall, you'll need to open the port(s) you're using (default is port 80 for HTTP). If you're behind a router (including the 'gateway routers' popular for sharing broadband internet connections), you'll need to enable port forwarding on the port(s) you're using. The reason you don't have to do this for outgoing connections is because the router 'knows' that your end is initiating it, and lets it go through, but when another computer tries contacting yours, the router needs to know which computer (on the local network behind the router) is to receive the incoming connection. If you use a router, you'll also need to give out your router's IP address, not the address of your actual computer (as this will be a local address assigned by the router, and only valid in that context). Should you not have another computer, or should you not want to give out your IP at this stage, you can still test your site by using the loopback address. This is 127.0.0.1, as Ooble mentioned. Using the default name 'localhost' also works. However, this is not actually your computer's IP address. It is a reserved address a machine can use to reference itself (usually for diagnostic/testing purposes). Finally, if you want to actually have your site hosted on the net, rather than hosting it from home (where it will be down whenever your computer is off, disconnected, or otherwise offline), you will need to find a web hosting service. You will probably also want to register a domain name, and associate that name with the IP address of your site, as determined by your web hosting service. Many hosting services will handle this for you, but if you don't register a domain name, then people will need to use IP addresses like 'http://64.233.187.99' rather than 'http://google.com'.
__________________
A man's knowledge is like an expanding sphere, the surface corresponding to the boundary between the known and the unknown. As the sphere grows, so does its surface; the more a man learns, the more he realizes how much he does not know. Hence, the most ignorant man thinks he knows it all. - L. Sprague de Camp |
|
|
|
|
|
|
#6 |
|
Hobbyist Programmer
Join Date: Jun 2006
Posts: 137
Rep Power: 0
![]() |
I use Apache, I would aslo recomend it just becouse of it ease of use and it is quite powerfull.
|
|
|
|
|
|
#7 | |
|
Hobbyist Programmer
|
Quote:
well i dont any much about apache but i will try to find a download for it. |
|
|
|
|
|
|
#8 |
|
Hobbyist Programmer
|
i have got everything but the router thing. how you was saying that about broadband connections. i have aol broadband. so what i do to let other people get to see the page?
|
|
|
|
|
|
#9 |
|
Professional Programmer
|
You might also want to check out http://www.no-ip.com/
It offers free dynamic dns, in case your ip changes each time you reconnect. And instead of using your ip address you can use an address which doesen't change. |
|
|
|
|
|
#10 | ||
|
Caffeinated Neural Net
Join Date: Jun 2005
Location: Dry west coast of Canada
Posts: 922
Rep Power: 4
![]() |
Quote:
![]() Quote:
About the router thing, you only need to know about that if you have a router. If you do, you need to check your router's documentation for how to enable port forwarding, and you'll need to ensure you have a static local address (ie, that your router gives your computer the same address each time you power on). If you don't have a router, you don't need to worry about any of this. One final note: if you plan on actually using your computer to host, you might want to check your ISP's terms of service. Sometimes, hosting a server violates these terms. Even if it doesn't, many ISPs have traffic limits, and if you exceed them (for example, by letting people download large files from your computer), you might find yourself cut off for the remainder of the month, or worse, facing heavy fees for the surplus traffic. Even aside from all that, bear in mind most consumer DSL and cable services are asymmetric (bandwidth for upload and download are different), with download bandwidth being far greater than upload bandwidth. This means anyone downloading large amounts of content from your computer will be doing so at speeds far less than you can download stuff.
__________________
A man's knowledge is like an expanding sphere, the surface corresponding to the boundary between the known and the unknown. As the sphere grows, so does its surface; the more a man learns, the more he realizes how much he does not know. Hence, the most ignorant man thinks he knows it all. - L. Sprague de Camp |
||
|
|
|
![]() |
| Bookmarks |
| Currently Active Users Viewing This Thread: 1 (0 members and 1 guests) | |
| Thread Tools | |
| Display Modes | |
|
|