Matt,
You were correct its reading SERVER_ADDR.
The internal IP is listed as SERVER_ADDR string(12) and the client IP is REMOTE_ADDR string(14).
EDIT: Matt if you need the full output to verify let me know and I will email it to you, but the above listed is how the IP is recognized. Thanks.