How to save host,port information when implementing http.createServer (). Listen () with hack Node.js

how do I save host,port information to a local file when hack Node.js implements http.createServer (). Listen ()?

Mar.12,2021
Menu