How do I grab user ip address?

Tim Jay

Active member
I have been using a simple api on vbulletin for a while that grabs a users ip address and authenticates (shows username, usergroups, etc) after making a post on the forum. The xenforo db has an ip column that seems to be encoded. Is there something I can use to decode the ip with php?