I need to save the IP addresses of my users to uniquely identify them - I want to avoid using an account system. According to the answer to this question, I need to use Request.UserHostAddress.
However, I want to save the IP addresses not as strings but as integers. I already created a function to convert regular IPv4 addresses to their numeric equivalent. What kind of formats (as strings) can I expect to get from Request.UserHostAddress? I want to expand my function to deal with IPv6 addresses, too, but I want to know the different kinds of formats I could get out of Request.UserHostAddress, especially considering how you can shorten IPv6 addresses.