0
// Argha Das it works but there are invisible ilegal characters \u00a0, try this import java.net.*; public class Program { public static void main(String[] args) { InetAddress ipAddress; try { ipAddress = InetAddress.getLocalHost(); System.out.println(ipAddress); } catch (UnknownHostException uhe) { uhe.printStackTrace(); } } }
19th Aug 2019, 6:02 AM
zemiak