0

I have a link on my asp.net site that connects to a resorce only available on the LAN. I want to check the client IP address and if it is a private ip make the label in my link visible and if it is a public ip, hide the label.

We have many subnets whos IPs span the spectrum on private addresses so to simplify I would like to just check if the ip is private or public. I know php can do this but I'm unaware if vb can. If not I would like to know how to compare the client ip to ranges I specifiy and then assign the visible property of the label accordingly. I know this can be done, just not how.

I have looked all over for a way to do this and can't seem to piece together anything that works. Any pointers would be greatly appreciated. Thanks.

Matt
  • 21,273
  • 14
  • 68
  • 109
  • I think this post may help : http://stackoverflow.com/questions/2138706/how-to-check-a-input-ip-fall-in-a-specific-ip-range , although it answers only the "range validation" part of your question – Laurent S. Jun 03 '13 at 15:19
  • Any help is appreciated. Thanks. – user2208184 Jun 03 '13 at 15:24

0 Answers0