How do you view a log of previous visited visitors showing their IP in Drupal 7?
You can find visitors IP-adresses in both the sessiontable (field hostname) or, if you have the core statistics module enabled, in the accesslog table (field hostname).

You can view these logs in a tool that let you examine your database (I use phpMyAdmin), or you can write a small custom module that displays them for you.