fixed public ip network id calculations