private String [ ] probeIps ( ) { Set < String > ips = new TreeSet < String > ( ) ; for ( int i = 0 ; i < 32 ; ++ i ) { InetSocketAddress sa = new InetSocketAddress ( _server , _port ) ; ips . add ( sa . getAddress ( ) . getHostAddress ( ) ) ; } if ( LOG . isDebugEnabled ( ) ) { StringBuffer sb = new StringBuffer ( ) ; for ( String ip : ips ) { sb . append ( ip ) ; sb . append ( " " ) ; } LOG . debug ( sb . toString ( ) ) ; } return ( String [ ] ) ips . toArray ( new String [ 0 ] ) ; }
Find possible IP addresses for communicating with the server .