How do I obtain the clients' IP address?

The IP address of the client is the value of the CGI variable CGI.HTTP_X_FORWARDED_FOR for production websites, and CGI.REMOTE_ADDR for stage.web.uoguelph.ca or any virtual hostnames configured for your production website.