this method attempts to find all inetaddresses for this machine in a conventional way via inetaddress . if only one address is found and it is the loopback , an attempt is made to determine the addresses for this machine using networkinterface . concode_field_sep PlaceHolder placeHolder concode_field_sep InetAddress[] getAllLocalUsingNetworkInterface concode_elem_sep InetAddress getLocalHost
InetAddress [ ] function ( ) { InetAddress [ ] loc0 = InetAddress . getAllByName ( "srini_string" ) ; if ( loc0 . length != 1 ) return loc0 ; if ( ! loc0 [ 0 ] . isLoopbackAddress ( ) ) return loc0 ; return getAllLocalUsingNetworkInterface ( ) ; }