Up to date

This page is up to date for Godot 4.2. If you still find outdated information, please open an issue.

UPNPDevice

Inherits: RefCounted < Object

Universal Plug and Play (UPnP) device.

Description

Universal Plug and Play (UPnP) device. See UPNP for UPnP discovery and utility functions. Provides low-level access to UPNP control commands. Allows to manage port mappings (port forwarding) and to query network information of the device (like local and external IP address and status). Note that methods on this class are synchronous and block the calling thread.

Properties

String

description_url

""

String

igd_control_url

""

String

igd_our_addr

""

String

igd_service_type

""

IGDStatus

igd_status

9

String

service_type

""

Methods

int

add_port_mapping ( int port, int port_internal=0, String desc="", String proto="UDP", int duration=0 ) const

int

delete_port_mapping ( int port, String proto="UDP" ) const

bool

is_valid_gateway ( ) const

String

query_external_address ( ) const


Enumerations

enum IGDStatus: