سلام خدمت همه دوستان، امیدوارم تا به اینجا از برنامه هایی که گذاشتم لذت برده باشید

برنامه ای که الان براتتون میزازم زو از یه سایت خارجی که دقیقا اسمش رو نمی دونم چی بود چند وخ پبش گرفتم و کارش اینه که لیست تمامی اتصالات شبکه ی شما رو به همراه آی پی و اطلاعات دیگه بهتون نشون میده، امیدورام بتونه مفید باشه

/*
* AbdolsalamDehvari mad
*/
package javaapplication32;

import java.io.*;
import java.net.*;
import java.util.*;
import static java.lang.System.out;
import java.util.logging.Level;
import java.util.logging.Logger;

/**
*
* @author Administrator
*/
public class JavaApplication32 {

/**
* @param args the command line arguments
*/
public static void main(String[] args) {
try {
Enumeration<NetworkInterface> nets = NetworkInterface.getNetworkInterfaces();
for (NetworkInterface netint : Collections.list(nets)) {
displayInterfaceInformation(netint);
}
} catch (SocketException ex) {
System.err.println("error");
}
}

static void displayInterfaceInformation(NetworkInterface netint) throws SocketException {
out.printf("Display name: %s\n", netint.getDisplayName());
out.printf("Name: %s\n", netint.getName());
Enumeration<InetAddress> inetAddresses = netint.getInetAddresses();
for (InetAddress inetAddress : Collections.list(inetAddresses)) {
out.printf("InetAddress: %s\n", inetAddress);
}
out.printf("\n");
}
}