我开发了一个识别访问国的 grails 应用程序。 我将应用程序推到云端, 效果也很好, 但远程地址的所有值都是内部的, 例如 172. 30. 49. 25, 因此我的应用程序无法识别任何国家 。 我在< a href=> http://www.ip2place.com/demo" rel=“nofollow> http://www.ip2place.com/demo - 相同的结果中尝试了这个地址 。
问题是:我怎样才能得到在云雾中部署的圣杯或爪哇应用软件用户的实际IP地址?
我开发了一个识别访问国的 grails 应用程序。 我将应用程序推到云端, 效果也很好, 但远程地址的所有值都是内部的, 例如 172. 30. 49. 25, 因此我的应用程序无法识别任何国家 。 我在< a href=> http://www.ip2place.com/demo" rel=“nofollow> http://www.ip2place.com/demo - 相同的结果中尝试了这个地址 。
问题是:我怎样才能得到在云雾中部署的圣杯或爪哇应用软件用户的实际IP地址?
您应该可以从 X- Cluster- Client-IP
或 X- forward- for
HTTP 请求信头获得这些数据。
类似 :
request.getHeader("X-Cluster-Client-IP")
Is it possible to deploy a node.js app on Cloud Foundry that listens for HTTPS requests on port 443? I can find various references to SSL support in the Cloud Foundry forums, but no actual examples ...
环境变数是云层的花 run时间传递环境应用的手段。 它所传达的最重要信息之一是......
I ve uploaded a simple Ruby test application to Cloud Foundry that works on my machine™, but it gives the following error on the site. ====> logs/stderr.log <==== /var/vcap/data/packages/...
How do I access the system environment variables in CFML? It is required to read out the CloudFoundry database connectivity settings. The variable required is "VCAP_SERVICES". Is there a function ...
I am using Cloud Foundry with tcServer to deploy my java application but am experiencing out-of-memory issues as I cannot seem to get any Java heap settings to take effect. Does anyone have any ...
I m running single instance CloudFoundry configuration with one web application. I turned on Hyperic monitoring with notification for case of web app unavailability. Now I randomly receive alert ...
It is the first time I have ever launched live a website (with Grails web framework under Amazon EC2 platform and Cloud Foundry) and I realized quickly that I am not ready for monitoring and ...
I am at the point with my Grails app that I want to deploy it up onto Amazon EC2 so I can start showing it to people. I have a little experience using EC2 "manually" to put other projects onto the ...