Install & Compatibility
Where this runs
No compatibility data collected yet for this library.
Code
Verified usage
Verified import paths — ran on the pinned version, not inferred.
goupnp
✓ github.com/huin/goupnp
Discover and query UPnP internet gateway devices.
package main
import (
"context"
"fmt"
"github.com/huin/goupnp"
"github.com/huin/goupnp/dcps/internetgateway1"
)
func main() {
clients, _, err := internetgateway1.NewWANPPPConnection1Clients()
if err != nil {
panic(err)
}
for _, client := range clients {
status, err := client.GetStatusInfo(context.Background())
if err != nil {
panic(err)
}
fmt.Printf("Connection status: %v\n", status.NewConnectionStatus)
}
}
Debug
Known issues
No known issues recorded.
Upgrade
Version history
1.3.0latest on pkg.go.dev
Audit
Dependencies
No dependency data recorded yet.