Apache Web-Serving with Mac OS X: Part 1
Subject:   Ip Probloms
Date:   2007-12-27 16:47:23
From:   feball
Response to: Ip Probloms

This IP address is given by your router (more likely an apple airport station). This IP address is internal, which means that the only computers that will be able to access your pages will be the computers in your home network.
There are two things that you can do about this; the first one is to connect directly from your ISP provided modem to your mac computer, you will notice that if you do this and get access to the internet, your IP address will no longer start with a 10.x.x.x. Although this is the easier route, I would not recommend it first because you will only be able to connect one PC to your home network (since you just got rid of the router!), and second, because your computer will end up with a less secured connection.
The second option, and in my opinion the best route to go about your problem, is to keep the connections just as you have them right now,(Computer<->Router<->ISP Modem) and create what is called "PORT FORWARDING".

PORT FORWARDING is something that you can get setup on your router, but to do this, you will need to do three things:
- Find out how to access your router configuration pages (maybe through a configuration utility?)
- Once you are into your router configuration, find your external IP address, it should be listed there somewhere
- Find out how to setup port forwarding on your router

Since I assume you don't know how to do these three things, and I don't know exactly what type of router you are using, my best advice to you is to contact your router manufacturer (i.e. apple) and ask them how to do these. For them these should be pretty straight forward questions, and they should be able to answer them right away.

Now a little more technical information about what you are doing. Your router acts as sort of a wall between the computers in your home and the rest of the internet. It protects your home network by preventing a lot of traffic known to be harmful by blocking or monitoring PORTS. For now think of PORTS as several pipes that are used to send and receive information. These ports are numbered, and some of them have specific functions. Most of the PORTS in your connections are closed by your router, but some that are well known are open, so you get access to communication services. For example, port#80 is the standard port for accessing the world wide web, if you close this port you will loose access to most of the internet. port#25 is used to send e-mail, etc.

When you allow port forwarding, you are allowing traffic through a specific PORT, so the idea is that in your router you will specify a number of a port and "open the pipe" for incoming and outgoing traffic. To be on the safe side, I would say that a good range for this port would be between 10000 and 11000. Just trust me on that one, there are a lot of other optional port numbers that you could do, but I think this range is pretty safe.

Once you have setup port forwarding on your router (make sure you allow TCP and UCP if you have that option) take note of your external IP address and also take note of the number of the selected port.

If you want to access your pages on computers that are outside your home network instead of putting on the url, you would put something like:
external ip address: port number ->

just remember, there might be other things that you need to put in there, like slashes, and your short username, but the IP address should be replaced exactly as I mentioned. One more thing: your external IP address could change at any moment, so this might not work for too long, but at least you will be able to try these tutorials and get the pages to work outside your network.

1 to 1 of 1
1 to 1 of 1