updated useNat to check whether or not the network has a public address