Values
Success
UPNP command or discovery was successful.
NotAuthorized
Not authorized to use the command on the godot.UPNPDevice
. May be returned when the user disabled UPNP on their router.
PortMappingNotFound
No port mapping was found for the given port, protocol combination on the given godot.UPNPDevice
.
InconsistentParameters
Inconsistent parameters.
NoSuchEntryInArray
No such entry in array. May be returned if a given port, protocol combination is not found on an godot.UPNPDevice
.
ActionFailed
The action failed.
SrcIpWildcardNotPermitted
The godot.UPNPDevice
does not allow wildcard values for the source IP address.
ExtPortWildcardNotPermitted
The godot.UPNPDevice
does not allow wildcard values for the external port.
IntPortWildcardNotPermitted
The godot.UPNPDevice
does not allow wildcard values for the internal port.
RemoteHostMustBeWildcard
The remote host value must be a wildcard.
ExtPortMustBeWildcard
The external port value must be a wildcard.
NoPortMapsAvailable
No port maps are available. May also be returned if port mapping functionality is not available.
ConflictWithOtherMechanism
Conflict with other mechanism. May be returned instead of godot.UPNP_UPNPResult.conflictWithOtherMapping
if a port mapping conflicts with an existing one.
ConflictWithOtherMapping
Conflict with an existing port mapping.
SamePortValuesRequired
External and internal port values must be the same.
OnlyPermanentLeaseSupported
Only permanent leases are supported. Do not use the duration
parameter when adding port mappings.
InvalidGateway
Invalid gateway.
InvalidPort
Invalid port.
InvalidProtocol
Invalid protocol.
InvalidDuration
Invalid duration.
InvalidArgs
Invalid arguments.
InvalidResponse
Invalid response.
InvalidParam
Invalid parameter.
HttpError
HTTP error.
SocketError
Socket error.
MemAllocError
Error allocating memory.
NoGateway
No gateway available. You may need to call godot.UPNP.discover
first, or discovery didn't detect any valid IGDs (InternetGatewayDevices).
NoDevices
No devices available. You may need to call godot.UPNP.discover
first, or discovery didn't detect any valid godot.UPNPDevice
s.
UnknownError
Unknown error.