Anonymous ID: 1a39dc Dec. 18, 2025, 2:51 p.m. No.23999020   🗄️.is 🔗kun

>>23999016

import java.net.InetAddress;

import java.net.UnknownHostException;

 

public class Main {

public static void main(String[] args) {

try {

InetAddress address = InetAddress.getLocalHost();

System.out.println("IP address: " + address.getHostAddress());

} catch (UnknownHostException ex) {

System.out.println("Could not find IP address for this host");

}

}

}