public static boolean isPubliclyRoutable ( final InetAddress addrIP ) { if ( addrIP == null ) throw new NullPointerException ( "isPubliclyRoutable requires an IP address be passed to it!" ) ; return ! addrIP . isSiteLocalAddress ( ) && ! addrIP . isLinkLocalAddress ( ) && ! addrIP . isLoopbackAddress ( ) ; }
Determines whether a particular IP address is publicly routable on the internet