Hi

I'm creating a kind of messaging program where I have a predefined subnet mask and a standard gateway. How can I now check if a certain IP adress is within the the range defined by subnet mask and gateway?

e.g. Subnet mask: 255.255.255.0
Gateway: 192.168.1.254

Check if IP adress 192.168.1.168 is within the range by code?

thanks and regards
xdream