Reputation: 23
I am looking to get the local IP address (pre-proxy) by using a public web site address "www.xxx.com". I am in other words NOT after the proxy IP address that you typically get from something like http://www.whatsmyip.org/
How would I go about and do this in Silverlight? Is this even possible? What I am after is identify if a machines is being used within the same LAN as the public server hosting the website. And if so, identify it and send some stuff over a REST API.
Upvotes: 1
Views: 1513
Reputation: 116401
What would you do with an address like that? 192.168.x.x belongs to a private IP network that isn't routable and it is shared by users all over the world.
Upvotes: 1
Reputation: 89172
You won't know if you are on the LAN by checking the local IP address. Lots of LAN's use 192.168.x.x -- that doesn't mean they are on your LAN.
I think that you do want the proxy IP. Either it will be 192.168.x.x -- which means that it was on your LAN and routed internally, or it will be the in the subnet of your web's public IP (or at least one that you control). It depends on how you route the IP internally.
Upvotes: 0