public class UPnP
extends java.lang.Object
| Constructor and Description |
|---|
UPnP() |
| Modifier and Type | Method and Description |
|---|---|
static void |
addPort(int port)
Add a port to the UPnP mapping
|
static void |
deletePort(int port)
Delete a port from the UPnP mapping
|
static java.net.InetAddress |
getExternalAddress()
Return the external address
|
static java.net.InetAddress |
getLocalAddress()
Return the local address
|
public static void addPort(int port)
port - Port to addpublic static void deletePort(int port)
port - Port to deletepublic static java.net.InetAddress getLocalAddress()
public static java.net.InetAddress getExternalAddress()