The incoming ports that need to be forwarded for OctoPrint are:
OctoPrint - PC
- TCP: 5000
- UDP: 5000
Forwarding Ports for OctoPrint
When you use OctoPrint you might need to forward some ports in your router. The purpose of forwarding ports is to make a direct connection from the internet to OctoPrint.
Routers are not designed to allow incoming network requests. By forwarding ports you can work around this limitation.
Remember to Do These Things Before You Forward a Port
Before forwarding a port make sure that you know these things:
- Your router's internal IP address.
- Your computer's internal IP address.
- The list of the TCP and UDP ports that you need to forward.
Find the IP Address of Your Router
You can run our free Router Detector software to locate your router's IP address. The software is part of our Network Utilities suite of tools and it is completely free to use.
We have a guide you can follow Find Your Router IP Address if you don't want to run the software.
Forwarding a Port for OctoPrint
The easiest way to forward your ports is to use our Network Utilities software. 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.
Another option is to go through the process of forwarding ports one step at a time. The way to forward a port is:
- Log in to your router.
- Find the port forwarding section in your router.
- Type your computer's IP address into the correct box in your router.
- Put the TCP and UDP ports that you are forwarding for OctoPrint in the correct boxes in your router.
Usually you have to reboot your router in order to save the changes.
You can choose your router from our list to see exactly how to forward ports for OctoPrint:
List of Routers - Customized for OctoPrint
Those are the steps to take in order to forward ports in your router for OctoPrint.