Search code examples
c#network-programmingipip-addresslan

How to get LAN IP of a client using .net?


I want to get the adrress IP (LAN ip) of the computer which access my site.

How can i get it?


Solution

  • You can't.

    Browsers don't send their local IPs in HTTP headers, so there is no way for you to get it. You only get the router's external (internet) IP.