node.js - Node http server responds slower when specifying host parameter -


if this:

const server = app.listen(3000, '127.0.0.1'); 

the response time more 500ms.

but when this:

const server = app.listen(3000); 

then response time ~30ms.

what reason?

note: response time measured postman


Comments

Popular posts from this blog

node.js - Node js - Trying to send POST request, but it is not loading javascript content -

javascript - Replicate keyboard event with html button -

javascript - Web audio api 5.1 surround example not working in firefox -