Topic: Annonymous Voting

How can I set up a voting system based on a users ip address and limit voting to once per post. How do I define the current_user variable and where do I put it so it can be accesible in both controller and views. Thanks