Will It Work? · Guide
Port triggering vs port forwarding: which one your device needs
By Bulan Sarkar, founder of ElectronicsInfoline (since 2000)
Your router's port-forwarding page often has a second button: port triggering. Both let traffic from the internet reach a device at home, but they suit different jobs, and a camera set up with the wrong one cannot be reached from outside. This guide is drawn from two router makers' support pages (one read on its US and India sites).
Port triggering opens the inbound ports only after a device sends traffic out on a trigger port, and only to that device, one computer at a time. Use it for an app that starts the conversation and needs replies on other ports. For a camera, server or anything that must accept connections without calling out first, use port forwarding.
What triggering does
One maker calls port triggering a dynamic extension of port forwarding (NETGEAR). A forwarding rule is always active once it is set up; a triggered rule is only activated when the router sees chosen outbound packets, and then the chosen inbound traffic goes to the computer that triggered it (NETGEAR). The other maker describes it the same way: traffic on a certain port is forwarded to a specific server on the local network, dynamically (TP-Link).
Triggering or forwarding?
One maker lists where triggering does better than forwarding (NETGEAR). You do not need to know the device's IP address in advance, because the router captures it. Any device on the network can use the rule. And the ports open when needed and close when they are not. Forwarding, by contrast, needs a device IP address that never changes (NETGEAR).
It has two limits. Only one computer can use a trigger at a time (NETGEAR). And nothing opens until the device sends out first. A camera you watch from your phone, or a game or media server, waits for someone to connect, so a trigger never fires and the connection is blocked. That job needs a forwarding rule and a reserved IP address. The maker that explains triggering says it suits apps whose incoming ports differ from the outgoing port, or one app used from several computers but not at the same time (NETGEAR).
A third option, UPnP, lets the device open ports on its own. Read UPnP on or off before you rely on it.
Set up a trigger
You need the ports from the app or game maker: the outbound port that triggers the rule and the inbound ports to open. On one maker's routers, go to ADVANCED > Advanced Setup > Port Forwarding/Port Triggering, select Port Triggering, and clear the Disable Port Triggering box (NETGEAR); triggering has to be on before you can add a service (NETGEAR). Click Add Service, name it, pick the protocol (TCP/UDP if you are not sure), enter the outbound port that opens the inbound ports in Triggering Port, then the inbound connection type and start and end ports (NETGEAR). The service then shows in the Portmap Table (NETGEAR).
On the other maker's routers, go to Advanced > NAT Forwarding > Port Triggering, click Add, fill in the form or pick from the list of applications, and check that the rule shows as Enabled (TP-Link).
The timeout
The router cannot tell when the app has closed, so a timeout decides how long the inbound ports stay open with no activity; one maker allows up to 450 minutes (NETGEAR). Too short and the ports close during a quiet spell in the app; too long and they stay open after you have finished.
Tips and tricks
- Get the trigger port and the inbound ports from the app or game maker’s support page. The router cannot work them out.
- After you add a service, check that it shows in the Portmap Table or as Enabled.
- If a camera or server is never reachable from outside, it needs forwarding, not a trigger.
- If a trigger works for one PC but not for a second one at the same time, that is the one-at-a-time limit, not a fault.
- Keep the timeout no longer than the app needs; one maker’s routers take up to 450 minutes.
What we would do
We would ask one question first: does the device call out before the other end connects? If not, as with a camera or server, we would set up a port-forwarding rule with a reserved IP address. If it does, and only one computer uses the app at a time, we would add a trigger with the ports the app's maker lists and a timeout that covers its pauses, and check that the router's WAN address is public.
Questions people ask
What is the difference between port triggering and port forwarding? Port forwarding is always open, to one device with a fixed IP address. Port triggering opens the inbound ports only after a device sends traffic out on a trigger port, sends them to that device, and closes them again when they are no longer needed.
Can I use port triggering for a security camera? Usually not. A camera you watch from outside waits for you to connect; it does not send out on a trigger port first, so the inbound ports never open. Use a port-forwarding rule and a fixed IP address.
Is port triggering safer than port forwarding? The ports are open for less time: only after the trigger and until the timeout passes with no traffic. Port forwarding keeps them open all the time. Either way, only open the ports the app’s maker lists.
Can two computers use the same port trigger? Not at the same time. One maker says any device can use it, but only one computer at a time. For two devices at once, use port forwarding with a rule for each.
Sources
Each figure on this page is quoted from the source below or worked out from them. Sources checked , each quote read again against the source in a second pass.
- NETGEAR, NETGEAR KB 24295: what port triggering is:
Port triggering is a dynamic extension of port forwarding. … Unlike port forwarding, which is always active after it is configured, port triggering works by creating a port forwarding rule (inbound firewall rule) that is only activated when it is triggered by detecting specified outbound packets. … After the rule is triggered, specified inbound packets (from the Internet) are forwarded to the computer that triggered it. … Port triggering does not require that you know a device’s IP address in advance; the IP address is captured automatically. … Port triggering can be used by any device on your network, although only one computer can use it at a time. … Port triggering can dynamically open ports to any computer when needed and close the ports when they are no longer needed. … Port triggering is particularly useful for applications that must open incoming ports that are different from the outgoing port, or if you have an application that must use port forwarding to more than one local computer (but not simultaneously).
kb.netgear.com/24295/What-is-port-triggering - NETGEAR, NETGEAR KB 000038518: turning port triggering on:
Clear the Disable Port Triggering check box. … In the Port Triggering Timeout field, enter a value up to 450 minutes. … This value controls how long the inbound ports stay open when the router detects no activity. This value is required because the router cannot detect when the application terminates.
kb.netgear.com/000038518/How-do-I-enable-port-triggering-on-… - NETGEAR, NETGEAR KB 65: adding a port triggering service:
Port triggering must be enabled on your router before you can set up a custom port triggering service. … If you’re not sure, select TCP/UDP. … In the Triggering Port field, enter the number of the outbound traffic port that opens the inbound ports. … In the Connection Type, Starting Port, and Ending Port fields, enter the inbound connection information. … The service is now in the Portmap Table.
kb.netgear.com/65/How-do-I-add-a-custom-port-triggering-serv… - TP-Link, TP-Link FAQ 1522 (US): setting up port triggering:
Port Triggering is a feature used to dynamically forward traffic on a certain port to a specific server on the local network. … Click on Advanced … Click on Nat Forwarding … Click on Port Triggering … Verify the service is showing and the status shows Enabled
tp-link.com/us/support/faq/1522/