Javascript/PHP - find if the client is in the same network
<p>I have an website hosted on local server in my LAN network. This server is exposed outside by port forwarding from router. I want to know if a client connects from outside the LAN or inside the LAN</p>