Answers for "how to check an ip adress"

PHP
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
0

if ip is

if($_SERVER["REMOTE_ADDR"]=='111.111.111.111'){
//run only my ip
}
Posted by: Guest on October-08-2021

Browse Popular Code Answers by Language