Here is a list of the ports that need to be forwarded for Apache:
Apache - PC
- TCP: 80, 443
Forwarding Ports for Apache
When you use Apache you may need to forward ports in your router. A port forward allows incoming connection requests from the internet to go straight to Apache.
Routers do not generally allow incoming connection requests from the internet. Forwarding ports can work around this limitation.
Remember to Do These Things Before You Forward a Port
You need to know the following things before you can forward a port:
- Your router's internal IP address.
- Your computer's IP address.
- Each of the TCP and UDP ports that you need to forward.
Find Your Router's IP Address
To find your router's IP address the easy way you can use our free Router Detector software. The software is part of our Network Utilities suite of tools and it is completely free to use.
You can also follow our Find Your Router IP Address article.
Forwarding a Port for Apache
A smart way to forward your ports is to use Network Utilities. Our Network Utilities software allows you to add port forwards and also remove them when you no longer need them to maximize your network security.
Alternatively you can do it by hand. The way to forward a port is:
- Log in to your router.
- Locate the section in your router that deals with port forwarding.
- Put your computer's IP address in the proper box in your router.
- Put the TCP and UDP ports for Apache in the corresponding boxes in your router.
You probably will need to reboot your router for the changes to take effect.
You can choose your router from our list to see exactly how to forward ports for Apache:
List of Routers - Customized for Apache
That is the process required to forward ports in your router for Apache.