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 > accessing websharing & ftp from net when behind airport

accessing websharing & ftp from net when behind airport
Thread Tools
Senior User
Join Date: Apr 2001
Location: Palo Alto, CA
Status: Offline
Reply With Quote
May 24, 2003, 01:22 PM
 
I would like to set up temporary websharing/ftp servers at home so that I can have friends/family access them to check out photos/documents.

I can do this easily at work because our computers have fixed ip addresses (just http://x.x.x.x where the xes are my ip address), but at home I am behind PPPoE and Airport. Is there a way to access the local machines from outside? What is the syntax for the ip address? can anyone help.

My setup at home is PPPoE router-Airport-4 computers

Ideally at least one or 2 of these computers could be set up for sharing.

Using a program like ip_3 I can find both the WAN ip address and the lan ip address but right now I only can figure out how to access personal websharing on the LAN and not from the wider web.

http://10.0.1.4
http://10.0.1.4/~myusername
ftp://10.0.1.4
or via rendevous
http://mymachinename.local.:80/~myusername


Any help? Anyone?
     
Mac Elite
Join Date: May 2002
Location: New York City
Status: Offline
Reply With Quote
May 25, 2003, 12:01 AM
 
1. Make sure Personal Web Sharing is turned on

2. Get your "external" IP address from www.whatismyip.com

3. Your shared website should be at: http://xx.xx.xx.xx/~myusername (the x's being the IP reported at whatismyip.com)

That's it.
     
Senior User
Join Date: Apr 2001
Location: Palo Alto, CA
Status: Offline
Reply With Quote
May 25, 2003, 02:17 AM
 
That solution only seems to work if there is one computer and no airport.

The public ip addresses of all the computers are actually the same.

Also what happens if 2 computers have user folders with the same names. How would you differentiate between them?
     
Grizzled Veteran
Join Date: Sep 2000
Location: London, UK
Status: Offline
Reply With Quote
May 25, 2003, 03:55 AM
 
Originally posted by barbarian:
That solution only seems to work if there is one computer and no airport.

The public ip addresses of all the computers are actually the same.
You need to set up port forwarding on your Base Station. This fowards Internet requests from your external IP to internal ones. This is fairly straightforward, in the Apple Airport Admin utility it's called 'Port Mapping', e.g. the (standard) port for web serving is 80, FTP is 21.

Be sure to look into setting up ftpchroot properly if security is a concern, otherwise your ftp users will have access to the entire machine.

Originally posted by barbarian:
Also what happens if 2 computers have user folders with the same names. How would you differentiate between them?
AFAIK the only way to do this with a shared IP is to use different ports for different machines on the network. So your port forwarding table might look like this:

Code:
public port private IP address private port 80 10.0.1.2 80 8080 10.0.1.3 80 8081 10.0.1.4 80 ...etc.
You can specify non-standard ports in the IP address like this: http://x.x.x.x:8080 .

That way you can differentiate between http://x.x.x.x:8080/~name , and http://x.x.x.x:8081/~name , and so on...

BTW there is a good basic primer for setting up a home server at macdevcenter .

HTH,
(Last edited by wulf; May 25, 2003 at 04:02 AM. )
     
Senior User
Join Date: Apr 2001
Location: Palo Alto, CA
Status: Offline
Reply With Quote
May 26, 2003, 10:38 AM
 
Many many thanks sir. I have been searching the web for this info without sucess for some time.

This totally solved my problem.
     
   
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 06:00 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