UPNPC(1)
π UPNPC β the miniupnpc library test client, bestie π
okay so like. this is upnpc, from the User Commands corner of the manual-verse. she's a test client for the miniupnpc library and she is, genuinely, so much. let's get into it π«Ά
β¨ NAME β¨
upnpc β miniupnpc library test client. that's it, that's her. iconic. π
πΈ SYNOPSIS πΈ
okay bestie, there are so many ways to run her. let's go one by one, no skips, no cap.
π Add port redirection
upnpc [options] -a ip port external_port protocol [duration]
ποΈ Delete port redirection
upnpc [options] -d external_port protocol <remote host>
π‘ Get Connection status
upnpc [options] -s
π List redirections
upnpc [options] -l
πβ¨ List redirections (using GetListOfPortMappings (for IGD:2 only)
upnpc [options] -L
π Add (any) port redirection allowing IGD to use alternative external_port (for IGD:2 only)
upnpc [options] -n ip port external_port protocol [duration]
π§Ή Delete range of port redirections (for IGD:2 only)
upnpc [options] -N external_port_start external_port_end protocol [manage]
π Add all redirections to the current host
upnpc [options] -r port1 [external_port1] protocol1 [port2
[external_port2] protocol2] [...]
π³οΈ Add Pinhole (for IGD:2 only)
upnpc [options] -A remote_ip remote_port internal_ip internal_port
protocol lease_time
π³οΈπ Update Pinhole (for IGD:2 only)
upnpc [options] -U uniqueID new_lease_time
π³οΈβ Check if Pinhole is Working (for IGD:2 only)
upnpc [options] -C uniqueID
π¦ Get Number of packets going through the rule (for IGD:2 only)
upnpc [options] -K uniqueID
π³οΈποΈ Delete Pinhole (for IGD:2 only)
upnpc [options] -D uniqueID
π₯ Get Firewall status (for IGD:2 only)
upnpc [options] -S
β³ Get Outbound Pinhole Timeout (for IGD:2 only)
upnpc [options] -G remote_ip remote_port internal_ip internal_port
protocol
π₯οΈ Get Presentation url
upnpc [options] -P
π¦ DESCRIPTION π¦
upnpc is a sample program for the miniupnpc library. like, a lil demo bestie that also happens to be useful. both things can be true. β¨
π OPTIONS π
okay these are the lil extras you can sprinkle on top of whatever mode you picked. main character energy only.
-edescription β sets the description for the port mapping. give your mapping a lil name tag π-6β use ip v6 instead of ip v4. glow up to the sixth version, fr fr π-uurl β bypass the discovery process entirely by providing the XML root description url. skipping the line, no waiting π¨-maddress/interface β provides the ip address (ip v4) or the interface name (ip v4 or v6) to use for sending SSDP multicast packets. tell her where to shout from π£-zlocalport β the SSDP packets' local (source) port. range is1024-65535. pick your lane π’-ppath β use this path for the MiniSSDPd socket. custom socket address, we love to see it π€οΈ-tttl β set the multicast TTL. the default value is2. don't touch it if you don't need to, bestie π
π SEE ALSO π
go check out her friends, they're all slaying too:
β οΈ real talk though: lots of these flags are marked for IGD:2 only β the pinhole ones,-L,-n,-N,-S,-G,-K,-U,-C,-Dβ so if your router is on an older IGD vibe, they simply will not hit the same. no cap. π
miniupnpc Β· January 2018 β that's the source and the date, bestie, and that's the whole page π stay hydrated, read your manpages, and remember: port redirection is self care π«Άβ¨
π¦ where this page comes from
- debian trixie: miniupnpc 2.2.8-2+b2 Β· BSD-3-Clause
- ubuntu questing: miniupnpc 2.2.8-2build2
- ubuntu resolute: miniupnpc 2.3.3-2build1 Β· BSD-3-Clause
- ubuntu stonking: miniupnpc 2.3.3-2build1 Β· BSD-3-Clause
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms