View previous topic :: View next topic |
Author |
Message |
Infinite Recursion n00b
Joined: 20 Feb 2004 Posts: 2
|
Posted: Fri Feb 20, 2004 3:41 am Post subject: Private vs. Public IP address... for ApacheWeb Server |
|
|
Hello,
I have installed Apache and I would like to host a public web site, but my
IP address is in the private range (192.x.x.x). Can anyone tell me how to set the IP to where it would be in the public range (68.x.x.x). I am running DSL.
Any help is greatly appreciated.
Infinite Recursion |
|
Back to top |
|
|
ckdake l33t
Joined: 10 Apr 2003 Posts: 889 Location: Atlanta, GA
|
Posted: Fri Feb 20, 2004 4:02 am Post subject: |
|
|
Just use the private IP for apache, then set up your DSL router to forward port 80 to your linux box and you should be good to go. _________________ http://ckdake.com/ |
|
Back to top |
|
|
Infinite Recursion n00b
Joined: 20 Feb 2004 Posts: 2
|
Posted: Fri Feb 20, 2004 4:27 am Post subject: |
|
|
I have port forwarding for HTTP pointed to the private IP address of the Gentoo / Apache installation... but I am getting a "Not Found" error. Typing the private IP in directly to a browser on the same network brings up the page, but trying to access it without using the private IP isnt working.
Is there anything I have to do in order for Apache / Linux to accept the port forwarding? Aside from having the web server started? I should be able to sit on a Win 2k box, type in the IP of my DSL device and see the web page that is hosted on the Gentoo box correct?
Thanks for your quick reply...
Infinite Recursion |
|
Back to top |
|
|
ckdake l33t
Joined: 10 Apr 2003 Posts: 889 Location: Atlanta, GA
|
Posted: Fri Feb 20, 2004 4:33 am Post subject: |
|
|
you can't type in the IP address of your router from inside your network. internally you have to us its internal IP address, and from anywhere outside of your network, you can use the IP address of your DSL. the only way slightly around this is to run your own DNS server locally and have it return your local IP address for whatever you would usually have public.
ie.
from outside of my network, ithought.org is 66.23.210.138
from inside my network, ithought.org is 172.16.0.69 _________________ http://ckdake.com/ |
|
Back to top |
|
|
|