Page 1 of 1

There should be a way of getting the network mask...

Posted: Sun Aug 21, 2011 12:49 pm
by DoubleDutch
There should be a way of (natively) returning the mask that is available for an IP address, eg:

Code: Select all

ip=NextIPAddress()
mask=IPMask()
From these two values we can calculate broadcast and this is really usefull in autodetecting a server on a network:

Code: Select all

broadcast=(mask!$ffffffff)|ip