@pumpkin-plugins/port-mapping API / discover / DiscoveryOptions
Interface: DiscoveryOptions
Defined in: tools/port-mapping/src/discover.ts:14
What to look for and where.
Properties
natPmp
natPmp:
boolean
Defined in: tools/port-mapping/src/discover.ts:16
Look for NAT-PMP gateways.
natPmpGateway?
optionalnatPmpGateway?:Endpoint
Defined in: tools/port-mapping/src/discover.ts:18
The NAT-PMP gateway to use. Without it the usual router addresses of the local network are tried.
screen?
optionalscreen?:Screen
Defined in: tools/port-mapping/src/discover.ts:25
Turns routers down by what they are. It sees every UPnP router that gives away its make and model before anything is asked of it, and a router it gives a reason for is not used. When that leaves no router, or no router answers and a web interface is recognized, discovery throws a RouterRefusedError. Without it routers are not identified.
searchMs?
optionalsearchMs?:number
Defined in: tools/port-mapping/src/discover.ts:27
How long a UPnP search waits for answers, in milliseconds.
ssdp?
optionalssdp?:Endpoint
Defined in: tools/port-mapping/src/discover.ts:29
Where to send UPnP searches. Defaults to the SSDP multicast group; a router's own address works when multicast is blocked.
upnp
upnp:
boolean
Defined in: tools/port-mapping/src/discover.ts:31
Look for UPnP gateways.