-1

If this was already asked I do apologize but I searched for a good two hours about this.

So I have a website and on it I have an admin panel that logs all my admin's actions, when doing so I grab their IP just in case the session bugs and deletes the name variable. However I've noticed some people have IPS' such as AT&T that seemingly encrypt your IP address. The IP address comes out looking like this:

2600:1003:b109:9b8a:70c7:3b0e:5fd3:d8f3

Does anyone know how to convert it to be back like this:

xxx.xxx.xxx.xxx

I've noticed that sites like whatsmyip.org do this.

Edit after reply: I feel stupid, I didn't even think about this being an IPv6 Address. Thanks for pointing it out everyone.

PMCJohn
  • 136
  • 1
  • 2
  • 9

1 Answers1

2

That's not encrypted. That's the IP address. It's an IPv6 address.

Your web hosting supports both IPv4 and IPv6 addressing, which is why you'll see a mix of these in your logs.

Brad
  • 159,648
  • 54
  • 349
  • 530