This tutorial will be explained in PHP. In some of the next tutorials we will explain how to do this in ASP.Net.
So, this is so easy to do, watch this
<?php $ip=$_SERVER['REMOTE_ADDR']; echo $ip; ?>
Put this code in some HTML page.
When the user opens that page, the command echo will write its IP address to the page.
That's it.








{ 4 comments… read them below or add one }
You haven’t really thought this through have you?
What about someone coming through a proxy?
Wordpress comes with a navigation as to who comments so it is easier to detect spammers.
Yes wordpress comes with navigation.
Wordpress comes with a navigation as to who comments so it is easier to detect spammers.