User Tools

Site Tools


java:network:network-scanner

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Next revision
Previous revision
java:network:network-scanner [2024/08/17 05:31] – created odeftajava:network:network-scanner [2024/08/17 05:38] (current) odefta
Line 1: Line 1:
 ====== Network Scanner ====== ====== Network Scanner ======
 +{{:java:network:pasted:20240817-053802.png}}
 +{{:java:network:pasted:20240817-053830.png}}
  
 ===== Description ===== ===== Description =====
Line 34: Line 36:
 ===== Source Code ===== ===== Source Code =====
  
-<code java NetworkScanner.java>+<code java NetworkScannerApp.java>
 import javax.swing.*; import javax.swing.*;
 import javax.swing.border.EmptyBorder; import javax.swing.border.EmptyBorder;
Line 181: Line 183:
  
     private String pingHost(String ip) {     private String pingHost(String ip) {
-        return executeCommand("ping -n 4 " + ip);+        return executeCommand("ping -n 4 " + ip);  // Limit to 4 packets for Windows
     }     }
  
java/network/network-scanner.1723861879.txt.gz · Last modified: 2024/08/17 05:31 by odefta