|
web
newsgroups
|
|||||||||||||||||||||||
|
|||||||||||||||||||||||
Is IP on my Subnet?Is there an "elegant" way to determine if an IP address is on my subnet? Or
do I just compare the first 2 or 3 octets? The elegant way is get both the subnet address and the IP address as 32-bit
unsigned integers, and AND them together. If the result equals the subnet, it's on the subnet. HTH, Tom Dacon Show quoteHide quote "Terry Olsen" <tolse***@hotmail.com> wrote in message news:%23jYDH50ZGHA.5088@TK2MSFTNGP03.phx.gbl... > Is there an "elegant" way to determine if an IP address is on my subnet? > Or do I just compare the first 2 or 3 octets? >
[DATE - newbie] change and set back
GetDirectories Performance RS232 - Recive = Send???? Debug.Wrile does not appear on the Output Window Trying to execute something stored in variable Iterate through page controls How to put a Word/Excel file into a database Impersonation help with SQL 2000 needed A Question of form focus - VB.NET 2003 Job title: $300 flat for job in perl, cgi, Visual Basic/Asp.Net, whatever online project |
|||||||||||||||||||||||