Update server.js

support subnet mask