Monday 21 August 2017

Can't connect server to server through socket

I am making a simple load balancer (basically a server) that listens to a GET request from browser (port 8080), and communicate through socket to another server on another port (8989). That's what i'm doing, simple right ?. But i keep getting error on my loadbalancer.js everytime i try to make a GET request.The error is ECONNREFUSED 127.0.0.1:8989. Why is that ?the code is here http://ift.tt/2uZZOcB in advance.

Submitted August 21, 2017 at 05:49PM by StupidRandomGuy

No comments:

Post a Comment