They did use javascript at showmyip.com, but there is an easier way but requires more.
PHP is an easy language for things like this because its a lot less code and does so much more, but it does require php installed on the server.
Example page:
<html>
<body>
<?php
echo "<p>Your ip is $REMOTE_HOST</p>"
?>
</body>
</html>
And the browser output would be:
Your ip is 127.0.0.1 (this would actually be your real ip)
Hope that helps, PHP is very useful
PHP links:
PHP Homepage
A nice site to learn from
- DeathIncarnate




Reply With Quote