Using the Web Test Environment - Allowing external access
(Page 4 of 4 )
You might be setting this server up for internal use by your whole development team. Perhaps you want to see how your site renders on Mac/IE7 in the cubicle next door.
Anyone in your workgroup can access your web server by default. They can enter either your network hostname or your network IP address into their browser. Here are a few examples of how that might look.
http://labpc_mike1
http://192.168.0.7
You may also need to configure any software or hardware firewalls to allow Apache to communicate with other machines. Typically you will be asked to allow Apache to act as a server or some other similar message.
Okay. Now what if you want to access this machine from home? Maybe you’re right in the middle of a project and you want to get some extra work time in over the weekend.
If you are directly connected to the Internet; you are already open to the world. Anyone with an Internet browser can connect to your web server by using your external IP address.
If you are behind a router or NAT firewall, you will need to enable “port forwarding.” Log into your router or firewall as per your hardware manufacturer’s instructions and find the settings for either “port forwarding” or “virtual servers” depending on how it’s labeled.
Allow all incoming requests on TCP Port 80 to be redirected to your local IP address. (That’s the 192.168.x.x one.) Now anyone who accesses your router's or firewall’s external IP address will be able to access your web server.
You can find this IP address by visiting http://www.whatismyip.com/.
| DISCLAIMER: The content provided in this article is not warranted or guaranteed by Developer Shed, Inc. The content provided is intended for entertainment and/or educational purposes in order to introduce to the reader key ideas, concepts, and/or product reviews. As such it is incumbent upon the reader to employ real-world tactics for security and implementation of best practices. We are not liable for any negative consequences that may result from implementing any information covered in our articles or tutorials. If this is a hardware review, it is not recommended to open and/or modify your hardware. |