org.codeartisans.java.toolbox.network
Class FreePortFinder
java.lang.Object
org.codeartisans.java.toolbox.network.FreePortFinder
public final class FreePortFinder
- extends Object
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
LOOPBACK
public static final String LOOPBACK
- See Also:
- Constant Field Values
ALL_INTERFACES
public static final String ALL_INTERFACES
- See Also:
- Constant Field Values
findRandom
public static int findRandom()
throws IOException
- Throws:
IOException
findWithPreference
public static int findWithPreference(int prefered)
throws IOException
- Throws:
IOException
findRandomOnIface
public static int findRandomOnIface(InetAddress address)
throws IOException
- Throws:
IOException
findOnIfaceWithPreference
public static int findOnIfaceWithPreference(InetAddress address,
int prefered)
throws IOException
- Throws:
IOException
Copyright © 2010. All Rights Reserved.