One of our customers created this tutorial for logging user logins:
http://www.webassist.com/tutorials/Show-online-users
the tutorial shows how to store the date, you could add a second column for the IP address. and bind that column to the SERVER -> REMOTE ADDR binding on the bindings panel.