public class ExternalIpDiscovery extends Object
| Modifier and Type | Method and Description |
|---|---|
void |
close() |
static InetAddress |
getExternalIP(InetSocketAddress firstHop)
Determine the network interface and external IP used for connecting to the specified address.
|
static void |
uninstall() |
public static InetAddress getExternalIP(InetSocketAddress firstHop)
firstHop - First address on the pathNatMapping.createMapping(long, DatagramChannel, List)public void close()
public static void uninstall()
Copyright © 2025. All rights reserved.