UPDATE:
This question exposed the obsolete, worst approach for visitors count and it should be avoided by everyone out there. Use sophis
visitors count
You can typically get IP address via $_SERVER['REMOTE_ADDR'] variable.
$_SERVER['REMOTE_ADDR']