Update server.js

NAT functionality