Skip to content

@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? ​

optional natPmpGateway?: 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? ​

optional screen?: 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? ​

optional searchMs?: number

Defined in: tools/port-mapping/src/discover.ts:27

How long a UPnP search waits for answers, in milliseconds.


ssdp? ​

optional ssdp?: 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.

pumpkin-plugins documentation