I have a ip check in my source use csharp.
And now, I must to think about the check rule about the ipv4 and ipv6.
The client side maybe like ↓
・only ipv4
・only ipv6
・both ipv4 and ipv6
Im sorry , Im new to the networking .
As so , Is anybody could give me some suggestion about the ip check?
Thanks.
About the IP Check:
I have a check like ↓ now :
bool isgoodip()
{
return ip.startwith(173);
}
If the client side has only the ipv6 , how can I do the check like this ?
and , is there has a server setting can convert the ipv6 to the ipv4 auto ?