PDA

View Full Version : [ubuntu] [SOLVED] Apache 2.2.8 IP Adrress



Promaster91
May 3rd, 2008, 02:08 PM
Hi. I just set up Apache 2.2.8 on Ubuntu. I have it working so that my html directory is in the home folder. I can navigate to the website by using localhost however I can't get to it using my IP address. So my question is how do I get to it using my IP address.

halitech
May 3rd, 2008, 02:34 PM
which IP (Internal or external)? are you behind a router? does your ISP block port 80 if you aren't behind a router?

Promaster91
May 3rd, 2008, 02:55 PM
The External IP (The one I can navigate to from another computer). Yes I am behind a Router (do i need to forward a port?). I have Comcast as my ISP (How can you tell if they block port 80).

halitech
May 3rd, 2008, 02:57 PM
if you are behind a router then you will need to forward a port so the router will pass the request along to the server. before we worry about that, can you load a page on your server locally by using the internal IP address assigned by the router?

Promaster91
May 3rd, 2008, 03:07 PM
Yes, the interal ip (192.168.1.7) is working. I can navigate to my website using the ip adrress.

halitech
May 3rd, 2008, 03:10 PM
ok, so that confirms Apache is working properly. you will need to do some digging on the next part as I don't know alot about routers but in the setup there should be an option on port forwarding. You need to go in that section and forward port 80 to the internal IP of the server machine. Once you do that, try it and see if it works, if it does good to go, if not, might be comcast blocking port 80 (which I think they do if I remember rigth)

Promaster91
May 3rd, 2008, 03:17 PM
Hey it works! I forwarded port 80 and used my external ip and it brought me to my webpage. Thanks!

halitech
May 4th, 2008, 01:23 AM
glad it is workign, don't forget to mark the thread solved so others will know in the future that you fixed it :)

Joeb454
May 4th, 2008, 01:37 AM
You may want to look at dyndns.com - They allow you to have a domain name (sort of) for free, if your router supports dyndns I would definitely recommend it.

For example I have http://www.joeb454.com - which just points to the dyndns address off http://joeb454.selfip.com

Oh and there's a flash game (has sound too) on that page - though it may take a while to load on my 448kbps upload speed :p

Dr Small
May 4th, 2008, 02:06 AM
You may want to look at dyndns.com - They allow you to have a domain name (sort of) for free, if your router supports dyndns I would definitely recommend it.

For example I have http://www.joeb454.com - which just points to the dyndns address off http://joeb454.selfip.com

Oh and there's a flash game (has sound too) on that page - though it may take a while to load on my 448kbps upload speed :p
FlashBlock caught it. Saved my browser :D

Promaster91
May 5th, 2008, 03:54 PM
Cool. I will check that out.

Promaster91
May 7th, 2008, 01:37 AM
Hey thanks, Joeb454. I was able to register a free domain at the website. I was looking all over for a free domain site.

Joeb454
May 7th, 2008, 01:45 AM
No worries - thats why I like dyndns. I just got that domain because a company was doing it half price ;)