Skip to content

Commit 9e3a0fb

Browse files
committed
updated with new option
1 parent a251f6a commit 9e3a0fb

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

source/_components/upnp.markdown

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ ha_release: 0.18
1414

1515
The `upnp` component enables you to collect network statistics from your router such as bytes in/out and packets in/out. This information is provided by the Internet Gateway Device (IGD) Protocol if enabled on your router.
1616

17-
The IGD can also automatically create port forwarding mappings on your router for Home Assistant.
17+
The IGD can also automatically create port forwarding mappings on your router for Home Assistant. By default it port forwards the tcp port being used by Home Assistant (default 8123), this can be changed with the optional external_port parameter.
1818

1919
Please note that UPnP or NAT-PMP needs to be enabled on your router for this component to work.
2020

@@ -23,6 +23,7 @@ To integrate this into Home Assistant, add the following section to your `config
2323
```yaml
2424
# Example configuration.yaml entry
2525
upnp:
26+
external_port: 80
2627
```
2728
2829
A port mapping will be created using the IP address and port that Home Assistant is running on. The mapping will never automatically expire. Upon stopping Home Assistant, the mapping will be removed from your router.

0 commit comments

Comments
 (0)