public InetAddressComboBoxModel() 
	throws java.net.SocketException {

	super();

	this.list = new ArrayList<InetAddress>( 2 );
	
	InetAddress localhost = null;
	try {
	    localhost = InetAddress.getLocalHost();
	} catch( java.net.UnknownHostException e ) {

	    System.out.println( "[Warning] No localhost found." );
	    // No localhost available ... continue though
	}
	//System.out.println( "localhost="+localhost.getHostAddress() );
	
	
	Enumeration<NetworkInterface> en = NetworkInterface.getNetworkInterfaces();
	int i = 0;
	while( en.hasMoreElements() ) {
	    NetworkInterface iface = en.nextElement();
	    
	    Enumeration<InetAddress> addresses = iface.getInetAddresses();
	    while( addresses.hasMoreElements() ) {
	
		InetAddress addr = addresses.nextElement();
		//System.out.println( addr.getHostAddress() );
		this.list.add( addr );

		// Preselect local host
		if( localhost != null && (addr == localhost || addr.equals(localhost) || addr.getHostAddress().equals(localhost.getHostAddress()) || addr.getHostAddress().equals("127.0.0.1")) ) {
		    this.selectedIndex = i;
		    //System.out.println( "EQUALS LOCALHOST: "+addr );
		}
		    
		i++;
	    }
	}
    
    }