Click here to Skip to main content
15,901,373 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
Hello,

I am working on the application in which I have to find the IP Address of the LAN machine which visits my website. But I am not able to find the real IP Address of that machine.

Please help me to find out real IP Address of network machine from web application.

Thanks A Lot...

Sahil Banker
Posted

Try these

Get users IP address[^]

Retrieve a Users IP Address[^]

Find IP Address in ASP.NET Behind Proxy[^](To find IP address of a machine behind LAN you can use this code)
 
Share this answer
 
That is just the beauty of it :)
Using NAT the IP is translated back to the client machine by the router. You just see the IP of that router that is also working as a basic firewall. But why would you need to know that address? It is useless when you are not a part of that same NAT. The IP of that machine will be 192.168.1.x like so many other machines but it isn't an IP you can use to trace back the machine over Internet. But you also wouldn't need it though.

http://en.wikipedia.org/wiki/Network_address_translation[^]

Good luck!
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900