I've created an page in ROR, which will be loaded from some website in an IFRAME. And the page will display to some of the whitelisted servers only.
I want to get public IP of server (which is requesting from IFRAME) so that I can return the content to some of the whitelisted IPs.
I've tried this SO answer but it giver server's PRIVATE IP not PUBLIC IP.
Also checked the request
variable but it have client IP(IP of the computer accessing the site) not server's public IP.
Using Ruby v2.1.5.
and Rails v3.2