How to get user ip address in drupal

    You can do this by simply using following function
    <?php

    $user_ip
    = ip_address();

    ?>
    For more information check: http://api.drupal.org/api/drupal/includes--bootstrap.inc/function/ip_add...
    0