If you're using PHP, try this: <?php echo "Your IP Address is: $_SERVER['REMOTE_ADDR']; ?> Code (markup): To see it in action: http://www.hybrid6.com/webgeek/tools/what-is-my-ip-address/
there is also IP2C or something like ip2country database..i had that script long before, but then i delted it long time back.It would show the visitors IP to them on the webpage and also their countries flag. just try googling ip2c