<html> <head> <title>IPアドレスを表示</title> </head> <body> <center> あなたのIPアドレス<br> <?php echo $_SERVER["REMOTE_ADDR"]; ?> </center> </body> </html>