Answers for "how to find your ip address 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 your ip address pc"

Code answers related to "C"

Browse Popular Code Answers by Language