Search code examples
phppackagenat

Identify computer via NAT in php


Is it possible to read out the NAT-Header of an IP-Package to identify the sending machine in php.

My goal is to identify on how many computers my users are logging in to my page.

Best regards


Solution

  • It's not possible to do - there are numerous routers between you and final user.

    The NAT is organized using NAT Tables which are stored in routers memory, so there is no sensible information in the network packages. So it's not possible by definition.