Welcome to the MacNN Forums.

If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

You are here: MacNN Forums > Software - Troubleshooting and Discussion > Mac OS X > Can't make my site visible on the internet

Can't make my site visible on the internet
Thread Tools
Mac Enthusiast
Join Date: May 2001
Status: Offline
Reply With Quote
Jan 13, 2003, 05:34 PM
 
Thought I'd start a new thread for this one...

More problems..

Thanks to Megus I can now hit <http://127.0.0.1/~simon2/index.html> and see the default Apache page on my box.

However, I can't get anyone else see this page!

I use a router which I have set up so that port 80 is forwarded to my 'internal' ip address <192.168.0.2>. I have checked my current 'external' ip address to be <xxx.x.xx.x>

So anyone else should be able to view my default page at http://xxx.x.xx.x/~simon2/index.html> but they can't. They see an error saying that the document contains no data.

Any suggestions?

Is it port 80 I should be forwarding?

I have set the router to forward 'start port 80/end port 80' to 192.168.0.2.

Hope someone can help...

Thanks

Simon
     
Professional Poster
Join Date: Jan 2002
Location: Rochester, NY
Status: Offline
Reply With Quote
Jan 13, 2003, 05:39 PM
 
127.0.0.1 always points to yourself. So if you have someone like me go to it, the browser tries to connect to me, not you.

You need to put your WAN IP address in there.
     
Mac Enthusiast
Join Date: May 2001
Status: Offline
Reply With Quote
Jan 13, 2003, 05:44 PM
 
Originally posted by CheesePuff:
127.0.0.1 always points to yourself. So if you have someone like me go to it, the browser tries to connect to me, not you.

You need to put your WAN IP address in there.
CheesePuff,

I know, that's what I mean by http://xxx.x.xx.x/~simon2/index.html>.

xxx.x.xx.x is my WAN address.

Just didn't want to post it on the internet...

Can you help any further?

Simon
     
Junior Member
Join Date: Dec 2001
Location: Sweden
Status: Offline
Reply With Quote
Jan 13, 2003, 05:46 PM
 
I'll have a crack at this one too

First. I can understand if you're not willing to publish your external ip-address, but I know of a friend whose ISP serves him an ip-address that is actually a local network address.

Does your external ip-address begin with 192.168.x.x or something else?

//megus
     
Mac Enthusiast
Join Date: May 2001
Status: Offline
Reply With Quote
Jan 13, 2003, 05:54 PM
 
Originally posted by megus:
I'll have a crack at this one too

First. I can understand if you're not willing to publish your external ip-address, but I know of a friend whose ISP serves him an ip-address that is actually a local network address.

Does your external ip-address begin with 192.168.x.x or something else?

//megus
Megus,

I was hoping you'd show up... :-)

My internal ip is 192.168.0.2, with the router being 192.168.0.1.

The WAN address is a different one altogether. I found it at <http://www.palserv.com/ipdisp.html>

Any good?

Thanks again

Simon
     
Professional Poster
Join Date: Sep 2000
Location: San Francisco
Status: Offline
Reply With Quote
Jan 13, 2003, 05:55 PM
 
I'm having the same problem. I can connect to my box and see the Apache page if I just go to username.dyndns.org, but I can't connect to my 'personal' site:

username.dyndns.org/~kman/index.htm

It says Forbidden: You don't have permission to access...

kman
     
Mac Enthusiast
Join Date: May 2001
Status: Offline
Reply With Quote
Jan 13, 2003, 06:03 PM
 
Originally posted by kman42:
I'm having the same problem. I can connect to my box and see the Apache page if I just go to username.dyndns.org, but I can't connect to my 'personal' site:

username.dyndns.org/~kman/index.htm

It says Forbidden: You don't have permission to access...

kman
kman42,

Megus helped me with that one...

Set the permissions of your home folder and all folders within it to 'owner/read& write', 'staff'/read only, and 'others/read only'.

Then select all the folders within your home folder *except* 'Sites', hit cmd-i and set the permissions to 'others/no access'.

This is a variation of what Megus told me in another thread.

HTH

Simon
     
Junior Member
Join Date: Dec 2001
Location: Sweden
Status: Offline
Reply With Quote
Jan 13, 2003, 06:09 PM
 
simonmartin:
Have you logged in to your router and verified that this really is the external address?
The script however reports my external address correct, so there shouldn't be a problem. Just out of curiosity: if you bring up a terminal and ping your external address. Is the reply coming from the router at 192.168.0.1 or from the external address?

kman42:
I've replied to your topic but the forum doesn't seem to update the amount of replies. Rickster has a suggestion too.

//megus
     
Professional Poster
Join Date: Sep 2000
Location: San Francisco
Status: Offline
Reply With Quote
Jan 13, 2003, 06:11 PM
 
Originally posted by simonmartin:
kman42,

Megus helped me with that one...

Set the permissions of your home folder and all folders within it to 'owner/read& write', 'staff'/read only, and 'others/read only'.

Then select all the folders within your home folder *except* 'Sites', hit cmd-i and set the permissions to 'others/no access'.

This is a variation of what Megus told me in another thread.

HTH

Simon
Cool. I just changed the permissions on the Sites directory and now all works well. Thanks.

kman
     
Mac Enthusiast
Join Date: May 2001
Status: Offline
Reply With Quote
Jan 13, 2003, 06:26 PM
 
Originally posted by megus:
simonmartin:
Have you logged in to your router and verified that this really is the external address?
The script however reports my external address correct, so there shouldn't be a problem. Just out of curiosity: if you bring up a terminal and ping your external address. Is the reply coming from the router at 192.168.0.1 or from the external address?

kman42:
I've replied to your topic but the forum doesn't seem to update the amount of replies. Rickster has a suggestion too.

//megus
Megus,

Not sure about the info the router is giving me... It mentions 'WAN port" and gives an ip address which is different fron the one I got from the website. If I use that address I get an error of <Object Not Found
The requested URL '/~simon2index.html' was not found on the RomPager server.>

I guess this is something different again.

If I ping the ip address I got from the website I just got the expected result of so many milliseconds delay and 0% packet loss. No mention of my internal ip address.

(how the hell do you stop a ping in the terminal? I usually use the network utility...)

Simon
     
Junior Member
Join Date: Dec 2001
Location: Sweden
Status: Offline
Reply With Quote
Jan 13, 2003, 07:08 PM
 
Argh! The forums really messing with me today. Half the time I get MySQL/PHP error-messages.

Anyway. I'm sorry to say that I'm probably not going to be able to help you with this one. It sounds to me as if you'll have to call your ISP and ask them about it.

I checked www.rompager.com. It's some sort of embedded webserver software. So this error is definitely not coming from your computer. And I'm fairly convinced that it's not coming from your router either. Perhaps from your ISP's router.

You could always try to register with some dynamic dns service. I myself use dyndns.org and the dyndns-server software DNSupdate. Maybe this will solve things...

Good Luck, and please, let me/us know how it went if somebody else doesn't show up and solves it for you.

[Edit: and ctrl+c will exit the ping if you have'nt found it already ]

//megus
(Last edited by megus; Jan 14, 2003 at 02:54 AM. )
     
Junior Member
Join Date: Oct 1999
Location: Greenville, NC USA
Status: Offline
Reply With Quote
Jan 14, 2003, 02:04 AM
 
Originally posted by simonmartin:

Not sure about the info the router is giving me... It mentions 'WAN port" and gives an ip address which is different fron the one I got from the website. If I use that address I get an error of <Object Not Found
The requested URL '/~simon2index.html' was not found on the RomPager server.>

(how the hell do you stop a ping in the terminal? I usually use the network utility...)

Simon [/B]
Ok.. Your WAN IP is the IP that you are registered as to the rest of the world. So if the router tells you that your WAN ip is xxx.yyy.... then that's what it is, or your router was pre-programmed to think that's what it is. So you could possibly have a router mis-setup.

However. I believe your router. And your Router may not have Loopback.. Loopback allows your router to redirect your WAN ip to your lan. So if your webserver is 192.168.1.200 on your LAN, you can type that it and hit it on the lan. but if your outside world ip (WAN) is something completely different, and your on the lan, and you type in the WAN Ip, you won't get it. You have to try it from outside the network.

I sorta get why you don't want to post the ip, but it makes this a guessing game.

CTRL-C to break anything from the terminal, including ping. Or you can set ping to ping a number of times (I believe). try man ping in console.

tim
     
Mac Enthusiast
Join Date: May 2001
Status: Offline
Reply With Quote
Jan 14, 2003, 03:45 AM
 
Originally posted by Ecuguru:
Ok.. Your WAN IP is the IP that you are registered as to the rest of the world. So if the router tells you that your WAN ip is xxx.yyy.... then that's what it is, or your router was pre-programmed to think that's what it is. So you could possibly have a router mis-setup.

However. I believe your router. And your Router may not have Loopback.. Loopback allows your router to redirect your WAN ip to your lan. So if your webserver is 192.168.1.200 on your LAN, you can type that it and hit it on the lan. but if your outside world ip (WAN) is something completely different, and your on the lan, and you type in the WAN Ip, you won't get it. You have to try it from outside the network.

I sorta get why you don't want to post the ip, but it makes this a guessing game.

CTRL-C to break anything from the terminal, including ping. Or you can set ping to ping a number of times (I believe). try man ping in console.

tim
Ecuguru,

Thanks for chipping in...

I'll go through the router setup wizard again to make sure.

I set my rig up as an ftp server a few months ago and it took half an hour from start to finish so I know that this can be done...

The loopback thing is what I call 'Port Forwarding' I guess. The router should be set up to forward anything which approaches my external ip on port 80 to my box which has an internal ip of 192.168.0.2.

I'll keep at it...

Simon
     
Professional Poster
Join Date: Feb 2001
Location: Sydney, Australia
Status: Offline
Reply With Quote
Jan 14, 2003, 04:49 AM
 
If you have got a NetGear router YOU CAN'T MAKE IT PORT 80. That port is reserved for the NetGear online setup.

Also you can't access your web site from your WAN IP address within your network you must access using your 192.168.0.2 IP.

So get the port 80 on your 192.68.0.2 to forward to say 3000.

Your address will be WANIP:3000.

Simple. Remember, this is only from my experience from using NetGear routers. I just thought you might be using one from the terminology you are using.
In vino veritas.
     
Professional Poster
Join Date: Feb 2001
Location: Sydney, Australia
Status: Offline
Reply With Quote
Jan 14, 2003, 04:50 AM
 
Originally posted by undotwa:
If you have got a NetGear router YOU CAN'T MAKE IT PORT 80. That port is reserved for the NetGear online setup.

Also you can't access your web site from your WAN IP address within your network you must access using your 192.168.0.2 IP.

So get the port 80 on your 192.68.0.2 to forward to say 3000.

Your address will be WANIP:3000.

Simple. Remember, this is only from my experience from using NetGear routers. I just thought you might be using one from the terminology you are using.
Just remember, to test the URL as if you are outside of your network just enter ROUTERIP:3000.
In vino veritas.
     
Mac Enthusiast
Join Date: May 2001
Status: Offline
Reply With Quote
Jan 14, 2003, 05:05 AM
 
Originally posted by megus:
Argh! The forums really messing with me today. Half the time I get MySQL/PHP error-messages.
//megus
Megus,

I gave up trying to post at about 1am last night...These forums are always flakey, I don't know why they can't sort things out once and for all...

Anyway, things are working.

I whent through the router setup again and noticed that the primary DNS server was blank, so I set that properly.

Also the external ip address which I got from the website wasn't right, the router info was.

Between these two things being fixed, things are working. I have had someone check from outside my network.

Thanks for everybody's help.

Simon
     
Mac Enthusiast
Join Date: May 2001
Status: Offline
Reply With Quote
Jan 14, 2003, 05:10 AM
 
Originally posted by undotwa:
If you have got a NetGear router YOU CAN'T MAKE IT PORT 80. That port is reserved for the NetGear online setup.

Also you can't access your web site from your WAN IP address within your network you must access using your 192.168.0.2 IP.

So get the port 80 on your 192.68.0.2 to forward to say 3000.

Your address will be WANIP:3000.

Simple. Remember, this is only from my experience from using NetGear routers. I just thought you might be using one from the terminology you are using.
undotwa,

It is a Netgear router in fact.

I can forward from the router on port 80 though. I just set things in the port forwarding interface, quite straightforward. Perhaps they have changed things, this one is about a year old.

Simon
     
Mac Enthusiast
Join Date: May 2001
Status: Offline
Reply With Quote
Jan 14, 2003, 05:13 AM
 
Originally posted by undotwa:
Just remember, to test the URL as if you are outside of your network just enter ROUTERIP:3000.
undotwa,

Can you explain a bit more here?

I have set the Netgear router to forward port 80 to my box which is 192.168.0.2.

What do I enter in my browser to test my site as if I was outside the network/router, exactly?

Thanks, sounds like a good tip...

Simon
     
Clinically Insane
Join Date: Apr 2000
Status: Offline
Reply With Quote
Jan 14, 2003, 09:35 AM
 
How are you getting your IP addy? If you're using a website you may simply be getting the IP address of an invisible proxy or cache server of your ISP.

What kind of error do people hitting you get?

If you want to give me your IP addy via IM or something I can test it out and then I'm sure I can get it working.
     
Clinically Insane
Join Date: Apr 2000
Status: Offline
Reply With Quote
Jan 14, 2003, 09:38 AM
 
Originally posted by undotwa:
If you have got a NetGear router YOU CAN'T MAKE IT PORT 80. That port is reserved for the NetGear online setup.

Also you can't access your web site from your WAN IP address within your network you must access using your 192.168.0.2 IP.

So get the port 80 on your 192.68.0.2 to forward to say 3000.

Your address will be WANIP:3000.

Simple. Remember, this is only from my experience from using NetGear routers. I just thought you might be using one from the terminology you are using.
NetGear wouldn't dare reserve port 80 for configuration. Internally sure, not externally.

Try this. Undotwa may be right about 80 being reserved INTERNALLY.

In httpd.conf set Apache to use port 85, then map port 80 incoming to the router to hit 85 on your machine.

If you don't know how, contact me, or post back.
     
Mac Enthusiast
Join Date: May 2001
Status: Offline
Reply With Quote
Jan 14, 2003, 10:15 AM
 
Originally posted by Cipher13:
How are you getting your IP addy? If you're using a website you may simply be getting the IP address of an invisible proxy or cache server of your ISP.

What kind of error do people hitting you get?

If you want to give me your IP addy via IM or something I can test it out and then I'm sure I can get it working.
Cipher13,

Thanks for the offer of help but we found a solution between us.

It was a combination of wrong permissions, the wrong external ip address and the dns server not being set in the router, I think. Either way, it works fine now.

Many thanks.

Simon
     
   
Thread Tools
Forum Links
Forum Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On
Top
Privacy Policy
All times are GMT -5. The time now is 08:10 PM.
All contents of these forums © 1995-2011 MacNN. All rights reserved.
Branding + Design: www.gesamtbild.com
vBulletin v.3.8.7 © 2000-2011, Jelsoft Enterprises Ltd., Content Relevant URLs by vBSEO 3.3.2