0

How to get Public IP Address, Lan IP Address & MAC Address of Client's Machine in MVC 4?

I am trying to get IP Address of client Machine. Request.UserHostAddressgives the Lan IP address but

  • what about Global IP Address?
  • How to get Public IP Address?
  • How google, whatismyip.com and so many other sites picks our Public IP with address and etc. ?
2
  • 2
    You can only get the Lan IP address if you're on the same Lan. Similarly, internet based services can only see the public IP Address, because you access them over the internet. And you can only see the MAC address if you're on the same network link. You're asking for 3 different pieces of information that all operate at completely different levels. What actual problem are you trying to solve? Commented Feb 13, 2014 at 10:29
  • Given your comment asking "How to uniquely Identify the visitor?", I'd say this is the same question as How to uniquely identify the client machine in an ASP.NET application?. Commented Feb 13, 2014 at 11:41

0

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.