Answers for "A simple program to print the IP address of the system File in java"

0

Write a java program to print the ip address

import java.net.InetAddress;public class Main{public static void main(String args[]) throws Exception{InetAddress IP = InetAddress.getLocalHost();System.out.println("IP address= "+IP.getHostAddress());} }
Posted by: Guest on July-04-2021

Code answers related to "A simple program to print the IP address of the system File in java"

Code answers related to "Java"

Java Answers by Framework

Browse Popular Code Answers by Language