Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
Private vs. Public IP address... for ApacheWeb Server
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Networking & Security
View previous topic :: View next topic  
Author Message
Infinite Recursion
n00b
n00b


Joined: 20 Feb 2004
Posts: 2

PostPosted: Fri Feb 20, 2004 3:41 am    Post subject: Private vs. Public IP address... for ApacheWeb Server Reply with quote

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
View user's profile Send private message
ckdake
l33t
l33t


Joined: 10 Apr 2003
Posts: 889
Location: Atlanta, GA

PostPosted: Fri Feb 20, 2004 4:02 am    Post subject: Reply with quote

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
View user's profile Send private message
Infinite Recursion
n00b
n00b


Joined: 20 Feb 2004
Posts: 2

PostPosted: Fri Feb 20, 2004 4:27 am    Post subject: Reply with quote

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
View user's profile Send private message
ckdake
l33t
l33t


Joined: 10 Apr 2003
Posts: 889
Location: Atlanta, GA

PostPosted: Fri Feb 20, 2004 4:33 am    Post subject: Reply with quote

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
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Networking & Security All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum