Auto login based on IP

Using s2member pro.
If a user comes to my website from their regular machine, I can find the local IP address using the $_SERVER[‘REMOTE_ADDR’] code.
I can then lookup the IP address in the user_meta table.

How can I use that info to automatically login the user?