run a web server from your house (use port forwarding)
for a long time i have told people that if they have internet at their house or business, they could run their own web server there and make their web pages public without having to buy web space or a domain name. this was theoretically obvious to me but i had never even attempted to do this in practice (despite its simplicity).
a side job i m working on will use a web site accessible on the local network yet each of the computers on that network should have access to the internet as well. the web site should not be public of course. do these two requirements conflict?
NO. last night i played with some settings on a DSL connected network to accomplish just this. the resulting idea is that the web site can be accessible only internally or externally as well without affecting those machines' ability to access the internet.
the path to this revelation:
1. i determined the IP of the network as seen by the internet.
2. i determined the IP of my computer on the local network.
3. next i tried to ping this internet IP address from a remote site (just-ping.com). this failed so i read the documentation.
4. i logged into the local network router and configured the "port forwarding" setting to forward remote HTTP requests to port 80 on my computer, that is, i had to tell it to forward to the IP of my machine on the local network. in this way, one machine can be designated as the FTP server, another (or the same one) as web server, etc.
5. another ping succeeds and visiting the web page also works.
a side job i m working on will use a web site accessible on the local network yet each of the computers on that network should have access to the internet as well. the web site should not be public of course. do these two requirements conflict?
NO. last night i played with some settings on a DSL connected network to accomplish just this. the resulting idea is that the web site can be accessible only internally or externally as well without affecting those machines' ability to access the internet.
the path to this revelation:
1. i determined the IP of the network as seen by the internet.
2. i determined the IP of my computer on the local network.
3. next i tried to ping this internet IP address from a remote site (just-ping.com). this failed so i read the documentation.
4. i logged into the local network router and configured the "port forwarding" setting to forward remote HTTP requests to port 80 on my computer, that is, i had to tell it to forward to the IP of my machine on the local network. in this way, one machine can be designated as the FTP server, another (or the same one) as web server, etc.
5. another ping succeeds and visiting the web page also works.
0 Comments:
Post a Comment
Subscribe to Post Comments [Atom]
<< Home