Simple port scanner in Java