Added remote_ip method closes #104

Thanks to @shokai and @kramerc for the suggestion and code.