$ip_address='192.168.1.100'; ini_set('allow_url_fopen', 'on'); $file = 'https://c-wd.net/ip'; $fh = fopen($file, 'r'); $ip_address = fgets($fh); fclose($fh); ?>