IStaticPortMapping interface (natupnp.h)
The IStaticPortMapping interface provides methods to retrieve and change the information for a particular port mapping.
Inheritance
The IStaticPortMapping interface inherits from the IDispatch interface. IStaticPortMapping also has these types of members:
Methods
The IStaticPortMapping interface has these methods.
IStaticPortMapping::EditDescription The EditDescription method sets the description property of this port mapping to the specified value. |
IStaticPortMapping::EditInternalClient The EditInternalClient method sets the internal client property of this port mapping to the specified value. |
IStaticPortMapping::EditInternalPort The EditInternalPort method sets the internal port for this port mapping. |
IStaticPortMapping::Enable The Enable method enables or disables this port mapping. |
IStaticPortMapping::get_Description The get_Description method retrieves the description associated with this port mapping. |
IStaticPortMapping::get_Enabled The get_Enabled method retrieves whether the port mapping is enabled. |
IStaticPortMapping::get_ExternalIPAddress The get_ExternalIPAddress method retrieves the external IP address for this port mapping on the NAT computer. |
IStaticPortMapping::get_ExternalPort The get_ExternalPort method retrieves the external port on the NAT computer for this port mapping. |
IStaticPortMapping::get_InternalClient The get_InternalClient method retrieves the name of the internal client for this port mapping. |
IStaticPortMapping::get_InternalPort The get_InternalPort method retrieves the internal port on the client computer for this port mapping. |
IStaticPortMapping::get_Protocol The get_Protocol method retrieves the protocol associated with this port mapping. |
Remarks
The NAT API with UPnP technology uses the combination of the external port and the protocol to identify the port mapping.
Requirements
Requirement | Value |
---|---|
Minimum supported client | Windows XP [desktop apps only] |
Minimum supported server | Windows Server 2003 [desktop apps only] |
Target Platform | Windows |
Header | natupnp.h |