Visual Studio Development Bookmark and Share   
 index > Visual Basic Express Edition > IP comparing question
 

IP comparing question

anyone got an idea how to check if 2 global ip's are local to each other :/
-Tuck
vCall  Saturday, October 17, 2009 1:01 AM
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.
Jeff Shan  Monday, October 19, 2009 10:54 AM
I don't think there is any reliable way to do it.
What if there is a proxy in place?
You just might not see the actual IP address of the other computer at all.


Mark the best replies as answers. "Fooling computers since 1971."
Rudedog2  Monday, October 19, 2009 1:23 PM

You can use google to search for other answers

Custom Search

More Threads

• browser automation II
• counting items in a list box
• reading disk sectors
• Check This Out!
• Running access sql code with VB
• WebBrowser, disabling images from loading
• VB Express "How to add Templates to New Project, "My Templates"
• Parent A Process To A Panel?
• Modify bindings with a routein.. How do you do this?
• Closing the foreground window