Code example for InetAddress

Methods: getHostName

	public abstract void dispose(); 
	protected InetSocketAddress getLocalAddress( InetAddress addr, int port )
	throws UnknownHostException 
		return new InetSocketAddress( addr.getHostName().equals( "" ) ? InetAddress.getLocalHost() : addr, port );
	private static class UDPOSCServer 
	extends OSCServer 
//		private final Map				mapCodecs	= new HashMap();	// key = SocketAddress (remote), value = OSCPacketCodec 
		private final OSCReceiver		rcv;
		private final OSCTransmitter	trns;
		protected UDPOSCServer( OSCPacketCodec c, InetSocketAddress localAddress )
		throws IOException 
			super( c, UDP );
Connect your IDE to all the code out there  Get Codota for Java