Hi Tom.
I have this as a rule in Notifications/LoginNotification/When LoginNotification is Received
Log the Member In
IF NOT(EXISTS UserLog WHERE (UserLog.Mem_Login=LoggedInSystemUser.LoginName AND UserLog.LogoutTime IS UNDEFINED))THEN CREATE UserLog WITH UserLog.LoginTime=CURRENT_TIMESTAMP,UserLog.Mem_Num=LoggedInSystemUser,UserLog.RerringURL=LoginNotification.ReferringURL, UserLog.RemoteAddress=LoginNotification.RemoteAddress, UserLog.SessionID=LoginNotification.SessionId
It probably needs tweaking but I'm sure LoginNotification gets called no matter what, so the user's IP address should be in LoginNotification.RemoteAddress