Reputation: 3483
Introduction : My windows server is listening at port 3000.When i start my node application to use port 3000 for listening, it failed with error.
I understand that i have alternate method of deploying node app using iis but i failed.The only way left is making problem i.e "port".
Edit When i unbind the port, i app start working.
If someone have better idea or idea about this problem, please do help. Thanks for your time.
Upvotes: 0
Views: 850
Reputation: 707846
Only one server at a time can use a given port. If your windows server is already using port 3000, then you can't start another server on that same port. You will have to either stop the first server or pick a different port number.
Or, use some sort of proxy as your only listener on port 3000 and have it divide the traffic among your two servers which would each run on different ports.
Upvotes: 3