add examples to readme
This commit is contained in:
parent
79fb296a6e
commit
4e44eacaff
1 changed files with 21 additions and 0 deletions
21
README.md
21
README.md
|
@ -24,6 +24,27 @@ aioupnp [-h] [--debug_logging=<debug_logging>] [--interface=<interface>]
|
|||
add_port_mapping | delete_port_mapping | get_external_ip | get_next_mapping | get_port_mapping_by_index | get_redirects | get_soap_commands | get_specific_port_mapping | m_search
|
||||
|
||||
|
||||
### Examples
|
||||
|
||||
To get the external ip address from the UPnP gateway
|
||||
|
||||
aioupnp get_external_ip
|
||||
|
||||
To list the active port mappings on the gateway
|
||||
|
||||
aioupnp get_redirects
|
||||
|
||||
To debug the default gateway
|
||||
|
||||
aioupnp --debug_logging=1 m_search
|
||||
|
||||
To debug a gateway on a non default network interface
|
||||
|
||||
aioupnp --interface=vmnet1 --debug_logging=1 m_search
|
||||
|
||||
To debug a gateway on a non default network interface that isn't the router
|
||||
|
||||
aioupnp --interface=vmnet1 --gateway_address=192.168.1.106 --debug_logging=1 m_search
|
||||
|
||||
## License
|
||||
|
||||
|
|
Loading…
Reference in a new issue