title: How can I fix Ecconrefused error in node.js?
body: <p>The module I use gives this error even if the server is turned on. I have hidden my IP address, but you can understand. I attach the error I received as a photo.
  What I want to do: I'm trying to get server information from a FiveM API. When I try to get data from the server running on the correct IP and port number in localhost, it gives this error and reacts as if the server is closed.</p>
  <p><a href="https://i.stack.imgur.com/9YrhQ.jpg" rel="nofollow noreferrer">My error code</a></p>
  <p>ECONNREFUSED</p>