find my ip address code example
Example 1: wahts my ip
Dont give this to people unless you really know what youre doing
Example 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());
}
}
Example 3: my ip
curl https://ipecho.net/plain
Example 4: my ip
Only Share This if you are hosting a server or something and you know what ur doing.
Example 5: what is my ip address ?
curl ifconfig.co