CryoEnix
Regular
Hi there, I've been playing around with networking in .NET lately, and I've managed to develop a function to return all of the IP addresses of the local machine - yay! But I digress...
The problem is, I need to find the subnet mask for each of these IP addresses - for example, if I were to pass the IP "192.168.0.1" to a function, I would like it to return the subnet (in this case "255.255.255.0"), or even just a string/boolean telling me if it's a LAN or Internet IP. Anyone?
The problem is, I need to find the subnet mask for each of these IP addresses - for example, if I were to pass the IP "192.168.0.1" to a function, I would like it to return the subnet (in this case "255.255.255.0"), or even just a string/boolean telling me if it's a LAN or Internet IP. Anyone?