Getting my IP adress (not 127.0.0.1)

From: Date: Mon, 25 Nov 2002 17:52:18 +0000
Subject: Getting my IP adress (not 127.0.0.1)
Groups: php.windows 
Request: Send a blank email to php-windows+get-17123@lists.php.net to get a copy of this message
Hi I try to get my local IP adress : <?php $arrIp = gethostbynamel("localhost"); foreach ($arrIp as $ip) { echo $ip."<br />"; } ?> However I only get 127.0.0.1 But I want the "public" dynamic adress my ISP gave me, as shown by the ipconfig windows command. Thanks in advance M _________________________________________ Michael Delorme 41 bd de Brou 01000 Bourg-en-Bresse tel/fax 04 74 23 26 10 mailto:michael@delorme.nom.fr _________________________________________

« previous php.windows (#17123) next »