Can you please answers any or all of my these questions!!
1) How to host a site from my pc (having a static IP) so that it can be accessed using that IP?
2) How to host a site from my Pc (having a static ip) so that it can be accessed using domain name?
3) How to host a site from my pc that is the part of a LAN so that it is accessible to the whole world?
(currently my site is just accessible to the LAN).
I am asking it just for learning not for actually hosting a site rite now or in next few months.
Please give me a link to tutorials for these or tell me yourself.
(I have XP. and XAMPP currently.)
If more iinfo is required, reply here.
| imagefree wrote: |
Can you please answers any or all of my these questions!!
1) How to host a site from my pc (having a static IP) so that it can be accessed using that IP?
|
If you have a webserver running (i.e. XAMPP) and your site is accessible from other PC's in your LAN, you don't have to do anything. See 3.
| Quote: |
2) How to host a site from my Pc (having a static ip) so that it can be accessed using domain name?
|
You have to register a domain name, and make it point to your IP. Registering a domain name can be done by a domain name registrar. I think when you register a domain name you can specify to which IP it should point, but I am not sure about that. Maybe someone else can give more information about that.
| Quote: |
3) How to host a site from my pc that is the part of a LAN so that it is accessible to the whole world?
(currently my site is just accessible to the LAN).
|
You have to make your router forward all incoming requests on port 80 to your PC. This can be done using the configuration software of the router. After you have made this change and your webserver is running your site is accessible from outside of your LAN.
For more help on forwarding port 80 to your PC, see if your router is listed here: http://portforward.com/routers.htm
there is a long list, i dont know which router do we have. And by the way what is router?
Is it a hardware or software?
| imagefree wrote: |
there is a long list, i dont know which router do we have. And by the way what is router? Is it a hardware or software? |
It's hardware. The router sits between your LAN and the internet. See: http://en.wikipedia.org/wiki/DSL_router. It's a little box, and its probably near to the point were your internet connection enters your house. For example, if you have cable-internet, the router is connected to the cable jack/connector. If you have ADSL over a telephone line it is connected to your telephone connector.
If you type "ipconfig" in DOS or "ifconfig" in a Linux shell it will tell you the IP of the "Default Gateway" (an IP on your local LAN). If you type this IP in your broswer (including http://) you will propably get in the configuration panel of your router. But it might be protected by a password, in which case you need the password (the person who set up the router will probably know it).
I also have a small question about hosting on my own computer. What about bandwidth. Do I have to buy it or something?
| MrBlueSky wrote: |
| imagefree wrote: | Can you please answers any or all of my these questions!!
1) How to host a site from my pc (having a static IP) so that it can be accessed using that IP?
|
If you have a webserver running (i.e. XAMPP) and your site is accessible from other PC's in your LAN, you don't have to do anything. See 3.
| Quote: |
2) How to host a site from my Pc (having a static ip) so that it can be accessed using domain name?
|
You have to register a domain name, and make it point to your IP. Registering a domain name can be done by a domain name registrar. I think when you register a domain name you can specify to which IP it should point, but I am not sure about that. Maybe someone else can give more information about that.
| Quote: |
3) How to host a site from my pc that is the part of a LAN so that it is accessible to the whole world?
(currently my site is just accessible to the LAN).
|
You have to make your router forward all incoming requests on port 80 to your PC. This can be done using the configuration software of the router. After you have made this change and your webserver is running your site is accessible from outside of your LAN.
For more help on forwarding port 80 to your PC, see if your router is listed here: http://portforward.com/routers.htm |
For the second part I would like to add is that when you buy a domain you will get an option of registering name servers to your domain. Here you give a name for the nameserver and point it to your static ip. So if you are planning to this do refer some guide showing you Domain Name Server Setup. The site where you register your domain will also help you.
| MrBlueSky wrote: |
| imagefree wrote: | there is a long list, i dont know which router do we have. And by the way what is router? Is it a hardware or software? |
It's hardware. The router sits between your LAN and the internet. See: http://en.wikipedia.org/wiki/DSL_router. It's a little box, and its probably near to the point were your internet connection enters your house. For example, if you have cable-internet, the router is connected to the cable jack/connector. If you have ADSL over a telephone line it is connected to your telephone connector.
If you type "ipconfig" in DOS or "ifconfig" in a Linux shell it will tell you the IP of the "Default Gateway" (an IP on your local LAN). If you type this IP in your broswer (including http://) you will propably get in the configuration panel of your router. But it might be protected by a password, in which case you need the password (the person who set up the router will probably know it). |
yes it opens a local site http://www.mikrotik.com/ or http://192.168.1.254/
| Mememe wrote: |
| I also have a small question about hosting on my own computer. What about bandwidth. Do I have to buy it or something? |
This depends on your internet provider. If you haven't got a download limit you probably don't have an upload limit either, which means you don't have to buy bandwith.
And when you open http://192.168.1.254/, does it prompt you for a password?
no, it just gives a page of 6 boxes.
Winbox
webbox
Telnet
Graphs (our network usage graphs)
Documentation
License
| imagefree wrote: |
no, it just gives a page of 6 boxes.
Winbox
webbox
Telnet
Graphs (our network usage graphs)
Documentation
License |
I'm assuming you mean that when you ask for the page at 192.168.1.254 you get a web page with these items. That page probably comes from the hardware router, although it could possibly be another computer on your LAN that acts as a router. The page will probably identify what kind of router it is. In any case, you can click on the documentation (I assume there's a link there) and find out more about the router. Sometimes ISP's provide a router with their service, and sometimes the modem and router are in the same box. If there's no password, anyone on the LAN can reconfigure the router, and could make it stop working if they made a mistake.
Somewhere in the router's web pages, it will have the ability to change its filtering rules which protect you from possibly hostile requests from the internet, and allow certain traffic through. If you do that, you should make sure you have configured your web server to be secure.
Oh,those are complex problems,I want to know the answers too!
| mjohnson wrote: |
| Oh,those are complex problems,I want to know the answers too! |
thanks guys for the usefull information
| MrBlueSky wrote: |
If you type "ipconfig" in DOS or "ifconfig" in a Linux shell it will tell you the IP of the "Default Gateway" (an IP on your local LAN). If you type this IP in your broswer (including http://) you will propably get in the configuration panel of your router. But it might be protected by a password, in which case you need the password (the person who set up the router will probably know it). |
If your connected to a wireless broadband ISP? how can you configure your settings or do you need to have a router?
| nivre wrote: |
| MrBlueSky wrote: |
If you type "ipconfig" in DOS or "ifconfig" in a Linux shell it will tell you the IP of the "Default Gateway" (an IP on your local LAN). If you type this IP in your broswer (including http://) you will propably get in the configuration panel of your router. But it might be protected by a password, in which case you need the password (the person who set up the router will probably know it). |
If your connected to a wireless broadband ISP? how can you configure your settings or do you need to have a router? |
I´m not sure, but I think in the case of a wireless broadband connection you don´t have a router. This means that every connection attempt to your (external) ip is always handled by your computer. So, if you install a webserver on your pc and put a site up, people can reach it by typing your ip in their browser. You don´t have to do any special configuration.