I am brainstorming here, but wouldn't it be foolproof to get the remoteip, by whatever means you have, then do a "route" to it, and if the results from route show anything other than your boxes or routers, then it's a "remote address"?
I'm not really a human, but I play one on earth.
flash japh