public void start() throws IOException { md.start(); }
public void start() throws IOException { md.start(); InetSocketAddress sockAddr = md.getLocalAddress(); localNetworkAddress = new NetworkAddress(sockAddr.getHostString(), sockAddr.getPort()); // See if the public address was explicitly specified, and if not, // make it a copy of localNetworkAddress if (publicNetworkAddress.getAddress() == null) { publicNetworkAddress = localNetworkAddress; } else { // Likewise for public port if (publicNetworkAddress.getPort() == 0) { publicNetworkAddress = new NetworkAddress(publicNetworkAddress.getAddress(), sockAddr.getPort()); } } }
public void start() throws IOException { md.start(); InetSocketAddress sockAddr = md.getLocalAddress(); localNetworkAddress = new NetworkAddress(sockAddr.getHostString(), sockAddr.getPort()); // See if the public address was explicitly specified, and if not, // make it a copy of localNetworkAddress if (publicNetworkAddress.getAddress() == null) { publicNetworkAddress = localNetworkAddress; } else { // Likewise for public port if (publicNetworkAddress.getPort() == 0) { publicNetworkAddress = new NetworkAddress(publicNetworkAddress.getAddress(), sockAddr.getPort()); } } }
public void start() throws IOException { md.start(); InetSocketAddress sockAddr = md.getLocalAddress(); localNetworkAddress = new NetworkAddress(sockAddr.getHostString(), sockAddr.getPort()); // See if the public address was explicitly specified, and if not, // make it a copy of localNetworkAddress if (publicNetworkAddress.getAddress() == null) { publicNetworkAddress = localNetworkAddress; } else { // Likewise for public port if (publicNetworkAddress.getPort() == 0) { publicNetworkAddress = new NetworkAddress(publicNetworkAddress.getAddress(), sockAddr.getPort()); } } }