Added the IP Function

This will allow you to see the IP of the recipient on the server side so
you can do the proper validation so check if the message needs relaying
or if it can stay local.