org.jdesktop.wonderland.common
Class NetworkAddress

java.lang.Object
  extended by org.jdesktop.wonderland.common.NetworkAddress

public class NetworkAddress
extends java.lang.Object


Constructor Summary
NetworkAddress()
           
 
Method Summary
static java.net.InetAddress getPrivateLocalAddress()
           
static java.net.InetAddress getPrivateLocalAddress(java.lang.String s)
           
static java.net.InetSocketAddress getPublicAddressFor(java.net.InetSocketAddress stunServer, java.net.DatagramSocket socket)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

NetworkAddress

public NetworkAddress()
Method Detail

getPrivateLocalAddress

public static java.net.InetAddress getPrivateLocalAddress()
                                                   throws java.net.UnknownHostException
Throws:
java.net.UnknownHostException

getPrivateLocalAddress

public static java.net.InetAddress getPrivateLocalAddress(java.lang.String s)
                                                   throws java.net.UnknownHostException
Throws:
java.net.UnknownHostException

getPublicAddressFor

public static java.net.InetSocketAddress getPublicAddressFor(java.net.InetSocketAddress stunServer,
                                                             java.net.DatagramSocket socket)
                                                      throws java.io.IOException
Throws:
java.io.IOException


Open Wonderland - http://openwonderland.org