{"id":342,"date":"2011-08-11T18:49:19","date_gmt":"2011-08-11T18:49:19","guid":{"rendered":"http:\/\/www.sitekickr.com\/blog\/?p=342"},"modified":"2011-08-11T18:49:35","modified_gmt":"2011-08-11T18:49:35","slug":"remote-host-address-127-0-0-1","status":"publish","type":"post","link":"https:\/\/www.sitekickr.com\/blog\/remote-host-address-127-0-0-1\/","title":{"rendered":"Remote Host Address returns 127.0.0.1"},"content":{"rendered":"<p>So you&#39;re trying to track your users IP for one reason or another, but a glimpse at the <em>REMOTE_ADDR<\/em> server variable always returns localhost or 127.0.0.1.<\/p>\n<p>Chances are, the reason this is happening is because your application server is running behind a web server such as Apache or IIS (as such is the case with Zope and other servers).<\/p>\n<p>Because the application server is being forwarded requests from your web server, the REMOTE_ADDR variable will contain the localhost IP of 127.0.0.1.<\/p>\n<p>Often times, these application servers offer another variable called <em>HTTP_X_FORWARDED_FOR<\/em> or similar. Try reading this variable instead, to see it is available and in fact carries the actual remote user&#39;s IP address.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>So you&#39;re trying to track your users IP for one reason or another, but a glimpse at the REMOTE_ADDR server variable always returns localhost or&hellip;<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"amp_status":""},"categories":[77,41],"tags":[118,117,116],"_links":{"self":[{"href":"https:\/\/www.sitekickr.com\/blog\/wp-json\/wp\/v2\/posts\/342"}],"collection":[{"href":"https:\/\/www.sitekickr.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.sitekickr.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.sitekickr.com\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.sitekickr.com\/blog\/wp-json\/wp\/v2\/comments?post=342"}],"version-history":[{"count":0,"href":"https:\/\/www.sitekickr.com\/blog\/wp-json\/wp\/v2\/posts\/342\/revisions"}],"wp:attachment":[{"href":"https:\/\/www.sitekickr.com\/blog\/wp-json\/wp\/v2\/media?parent=342"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.sitekickr.com\/blog\/wp-json\/wp\/v2\/categories?post=342"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.sitekickr.com\/blog\/wp-json\/wp\/v2\/tags?post=342"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}