<?echo $_SERVER["REMOTE_ADDR"];?>
c'est cela qui affiche ton ip.J'avais pas vu ton message, merci beaucoup, c'est parfaitou bien$page = file_get_contents('http://www.showmyip.com/xml/'); preg_match('#<ip>(.*?)</ip>#', $page, $ip); echo $ip[1];
$page = file_get_contents('http://www.showmyip.com/simple/'); preg_match('#^(?:\d+\.){3}\d+#', $page, $ip); echo $ip[0];