Fully port netServerSpec.js.