/* * Output: * * * name/132.81.162.18 */ import java.net.InetAddress; public class MainClass { public static void main(String args[]) throws Exception { InetAddress myAddress = InetAddress.getLocalHost(); System.out.println(myAddress); } }