Serving webpage w/ Airport Extreme Base station...

Jump to First Reply
Posted:
in General Discussion edited January 2014
Hello,



I have an extra iBook laying around and I want to turn it into a server. I have an ethernet connection with a static IP address and its sharing that connection with an Airport Extreme basestation.



Under the Airport Adim Utility I have distribute IP address checked- so my basestation has a regular IP address and all the computers on the wireless network get a 10.0.0.X IP.



How do I access these computers from the net if I have Web Sharing turned on?



Thanks

-taco

Comments

  • Reply 1 of 3
    xoolxool Posts: 2,460member
    Ok, this is pretty simple but you have to make a few changes in a few places. Also, there are some gotchas which I will go into. I have a rev A graphite basestation and it works for me. Later models should work the same, but YMMV.





    Step 1: Make sure the AirPort basestation is enabled with DHCP on. I believe it's on by default.



    Step 2: Assign a static IP address to the iBook. It should look like the DHCP address given to it by the basestation. Just change the last number to 100 or something to keep it farther away from the "DHCP" pool. Something like 10.0.0.100. Make sure your Websharing is on.



    Step 3: Go to the "Port Mapping" section of the Airport Admin tool. Here you will map ports from the external static IP to the internal IP you just assigned to the iBook. You will need to do this for each port you want to provide access. Web hosting uses port 80.



    Step 4: You're done. Have someone outside your network try to access your computer using the static IP address.





    Caveats: You cannot access your own machine from inside the network using the external IP. Meaning, if a second iBook is on the wireless, you have to access the shared machine using the local 10.0.0.100 IP or its rendezvous name. Also, your machine is now wide open to the outside world. For more security you can map unmatched ports (like 8080 to 80) or enabled password protection on your website.



    You can map other ports to provide more access to the machine. SSH uses port 22. You can also enable Apple File Sharing with port 548. Port 427 may be useful too, but I'm not exactly certain what it is used for.
     0Likes 0Dislikes 0Informatives
  • Reply 2 of 3
    OK- cool I got that working...



    Now where is the site root located on the computer? Or how do I make a users "site" directory the default?



    RIght now when I type in



    http://IP Address



    It goes to a different site root other than my admin's. How do I change my admins site root to the default so I don't have to type in



    http://IP Addres/~USERID



    Thanks

    -taco
     0Likes 0Dislikes 0Informatives
  • Reply 3 of 3
    rogue27rogue27 Posts: 607member
    Quote:

    Originally posted by tacojohn

    OK- cool I got that working...



    Now where is the site root located on the computer? Or how do I make a users "site" directory the default?



    RIght now when I type in



    http://IP Address



    It goes to a different site root other than my admin's. How do I change my admins site root to the default so I don't have to type in



    http://IP Addres/~USERID



    Thanks

    -taco






    The site root is at:

    /Library/WebServer/Documents/
     0Likes 0Dislikes 0Informatives
Sign In or Register to comment.