Hi vCall, Do you mean you want to know how to check if two global ip addresses are in the same lan? I'm not sure whether we can build a lan using global ip addresses, i'm not familiar with network. Maybe i'm wrong, but to my understanding, if a computer is in a lan, you can do an and operation between its ip address and mask code to get the network address of the ip address. So if you want to check whether two ip addresses are local to each other, maybe you just need to check whether the network addresses of them are the same. Regards Jeff Shan
Please remember to mark the replies as answers if they help and unmark them if they provide no help. |