Answers for "how to find ip address in pc"

C
2

how to find ip address

import java.net.InetAddress;
import java.net.UnknownHostException;
public class FindIPaddress {
	public static void main(String[] args) throws UnknownHostException {
		InetAddress a = InetAddress.getLocalHost();
		System.out.println(a.getHostAddress());	
	}
}
Posted by: Guest on September-30-2020

Code answers related to "how to find ip address in pc"

Code answers related to "C"

Browse Popular Code Answers by Language