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 > Enthusiast Zone > Networking > Web Serving with NAT and DHCP on?

Web Serving with NAT and DHCP on?
Thread Tools
Dedicated MacNNer
Join Date: May 2002
Location: Brooklyn, NY
Status: Offline
Reply With Quote
May 17, 2003, 02:08 AM
 
Hi,
I'm trying to use OS X's built in web server. I'm connecting to the internet through an Airport Extreme Base Station (using NAT and DHCP), which is connected to a cable modem. Under the "port mapping" sectino of the base station, I've entered:
Public Port: 80
Private IP Address: 10.0.1.201
Private Port: 80

Now, I've configured my computer so that it always gets IP address 10.0.1.201, but no matter what I do, I can't get the web page from outside my network. Let's say me IP address were 128.148.181.154 (which it used to be....), would I just type:
http://128.148.181.154/~gtaubman/website.html ?
do I need http://128.148.181.154:80/ ?

Either way, neither works. I thought this is what port forwarding was supposed to be for.

Any help?
Thanks!

Gabe

Edit:
I just found a site which says that it works, but that you just can't tell from inside the network. Is this true?
     
Addicted to MacNN
Join Date: Mar 2000
Location: London, UK
Status: Offline
Reply With Quote
May 17, 2003, 05:04 AM
 
Yes, most home routers (probably AirPort included) don't work if you try to access yourself by your outside IP from within your network. Some can forward on these packets to the outside world, where if your ISP is configured correctly, at the first router they hit they'll turn around and bounce back home again, but this is pretty rare. You should try it from another computer.
     
Junior Member
Join Date: Nov 2001
Status: Offline
Reply With Quote
May 17, 2003, 09:43 AM
 
As was mentioned, most inexpensive consumer routers, including the Airport device cannot perform loopback operations. You can see if your site running by using a redirect service such as:

http://www.anonymizer.com/

You just type in the URL you want to go to, and this site (and others like it) will access the site for you and then redirect the results back to you for viewing.

Tom N.
     
   
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 05:59 AM.
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