Mac OSX as web server

Discussion in 'macOS' started by northernmunky, Apr 8, 2007.

  1. northernmunky macrumors 6502a

    northernmunky

    Joined:
    Jan 19, 2007
    Location:
    London, Taipei
    #1
    I'm trying to turn my Mac into a web server so that I can serve files to the internet using the 'Personal Web Sharing' tool but from what I can tell I can only create a local IP address which is only good for the machines connected to my hub.

    I think I understand now that I need a static IP address for serving files from my machine but how I get that, and even how I make the files accessible to that address I'm a little lost.

    Anyone else doing this I'd appreciate some advice on this! Thats is of course if what I'm trying to do is even possible without shelling out for OSX Server? :confused:

    Thanks!
     
  2. localoid macrumors 68020

    localoid

    Joined:
    Feb 20, 2007
    Location:
    America's Third World
    #2
    Port forwarding

    Probably good to note that operating a (public) server may be in violation of your ISP's TOS... :rolleyes:
     
  3. jane doe macrumors 6502

    Joined:
    Feb 18, 2004
    #3
    Once you get your IP address, you will need DNS so you can point your domain name to your IP address. you don't really need a static IP address for this. I use a service called DYNDNS:

    https://www.dyndns.com/

    They can point your domain name to a static IP address. There is a little app that runs on my server that tells them when my IP address changes.

    If you want to see how this works, send me a PM and I'll point you to my webserver.
     
  4. northernmunky thread starter macrumors 6502a

    northernmunky

    Joined:
    Jan 19, 2007
    Location:
    London, Taipei
    #4
    Thats wicked, my router had something on it called DDNS buried in the settings which pointed to dyndns.com so I've just registered for that. My router has fields for the username and password which I've filled in, I'm guessing the host name field is for the address of the local client, 192.168.1.100?
     
  5. savesteve macrumors newbie

    Joined:
    Apr 6, 2007
    Location:
    Fremont, CA
    #5
    Correct. One thing to look out for here is if your machine's internal IP changes (if it's also on DHCP).

    The router should keep Dyndns updated with your routers external DHCP IP if it changes from your ISP.
     
  6. ChrisA macrumors G4

    Joined:
    Jan 5, 2006
    Location:
    Redondo Beach, California
    #6
    Most don't care given the volume that a typical home web site will have, like four "hits" per week. But many DSL and cable connections are asymetric and have very limited upstream bandwidths. Basically your site will be very slow.
     
  7. ChrisA macrumors G4

    Joined:
    Jan 5, 2006
    Location:
    Redondo Beach, California
    #7
    I use the exact same service. But watch out. Many routers that say they will support dyndns.com are broken.

    Read the dyndns.com they have some notes about this. What you can do that will 100% work correctly is run a script on the mac that checks for a changed IP address and then sends a message to dyndns.com. They have a number of sample scripts on their web site. But if the router works it is best to do it there. test it. Broken outers tend to work for a while then not work. This info in on the dyndns site. They have a list of routers
     

Share This Page