I have a list of IP's in IPv4 format that i have collected from previous HttpRequest objects that my web-server received. I have a java applet which gives IP addresses in Ipv6 format(java applet returns a bunch of data along with the IP address). I need to check if the IP returned by the applet matches any item from list.
How do inter-convert IPv6 and IPv4 formats?
My web application is built on ASP.Net C#
EDIT
here is the problem that i am facing. The Java applet returns a bunch of IP's from the client which i assume depends on the number of network cards the client machine has.
Along with this i get a IP address from the ASP.Net HTTPRequest object. I need to find out which IP was actually used to connect to my website and carryout some tasks.
The problem is sometimes i get only one IP from the javaapplet in IPv6 format where as the IP i get from the HTTPRequest object is in IPv4 format so the comparison fails.