Answers for "Write a java program to print the ip address"

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 "Write a java program to print the ip address"

Code answers related to "Java"

Java Answers by Framework

Browse Popular Code Answers by Language