3 environment variables containing remote IP address? WHY??

  • rjstephens
  • Professor
  • Professor
  • User avatar
  • Posts: 774
  • Loc: Brisbane, Australia

Post 3+ Months Ago

Ok, this is confusing the hell out of me. There are 3 environment variables I can pull through my script to get the IP address. What is the difference between these 3, and which one should I be using, and why?

  • Anonymous
  • Bot
  • No Avatar
  • Posts: ?
  • Loc: Ozzuland
  • Status: Online

Post 3+ Months Ago

  • _Leo_
  • Proficient
  • Proficient
  • User avatar
  • Posts: 279
  • Loc: Buenos Aires, Argentina

Post 3+ Months Ago

I can't tell the difference, the only one I do recognize as standard is "REMOTE_ADDR"
  • rjmthezonenet
  • Expert
  • Expert
  • User avatar
  • Posts: 526
  • Loc: St. John's, Newfoundland, Canada

Post 3+ Months Ago

The remote IP address may be changed by gateways such as Network Address Translation (NAT) and proxy services. Friendly gateways will change some of the addresses. Sorry, I don't know which ones off the top of my head.

(If you know, please post here.)

Post Information

  • Total Posts in this topic: 3 posts
  • Users browsing this forum: No registered users and 161 guests
  • You cannot post new topics in this forum
  • You cannot reply to topics in this forum
  • You cannot edit your posts in this forum
  • You cannot delete your posts in this forum
  • You cannot post attachments in this forum

© 1998-2014. Ozzu® is a registered trademark of Unmelted, LLC.